Merge remote-tracking branch 'emoose/devicetype-fix' into canary
This commit is contained in:
parent
ebeb117e74
commit
75b0beae2a
|
@ -112,7 +112,7 @@ DECLARE_XAM_EXPORT1(XamContentGetDeviceState, kContent, kStub);
|
|||
|
||||
typedef struct {
|
||||
xe::be<uint32_t> device_id;
|
||||
xe::be<uint32_t> unknown;
|
||||
xe::be<uint32_t> device_type;
|
||||
xe::be<uint64_t> total_bytes;
|
||||
xe::be<uint64_t> free_bytes;
|
||||
xe::be<uint16_t> name[28];
|
||||
|
@ -129,7 +129,7 @@ dword_result_t XamContentGetDeviceData(
|
|||
device_data.Zero();
|
||||
const auto& device_info = dummy_device_info_;
|
||||
device_data->device_id = device_info.device_id;
|
||||
device_data->unknown = device_id & 0xFFFF; // Fake it.
|
||||
device_data->device_type = device_info.device_type;
|
||||
device_data->total_bytes = device_info.total_bytes;
|
||||
device_data->free_bytes = device_info.free_bytes;
|
||||
xe::store_and_swap<std::wstring>(&device_data->name[0], device_info.name);
|
||||
|
|
Loading…
Reference in New Issue