[Kernel] Zero out device data in XamContentGetDeviceData.

This commit is contained in:
gibbed 2018-12-03 11:54:23 -06:00
parent 919882dd68
commit aa38d4b77b
1 changed files with 1 additions and 0 deletions

View File

@ -104,6 +104,7 @@ dword_result_t XamContentGetDeviceData(
return X_ERROR_DEVICE_NOT_CONNECTED; return X_ERROR_DEVICE_NOT_CONNECTED;
} }
device_data.Zero();
const auto& device_info = dummy_device_info_; const auto& device_info = dummy_device_info_;
device_data->device_id = device_info.device_id; device_data->device_id = device_info.device_id;
device_data->unknown = device_id & 0xFFFF; // Fake it. device_data->unknown = device_id & 0xFFFF; // Fake it.