[Kernel] Support XFileAlignmentInformation, stub NtDeviceIoControlFile & IoCreateDevice
XMountUtilityDrive-related code checks some values returned from NtDeviceIoControlFile, stub just returns values that it seems to accept IoCreateDevice is also used by utility-drive code, writing some values into a pointer returned by it, so stub allocs space so it can write to the pointer without errors.
This commit is contained in:
@@ -126,6 +126,13 @@ dword_result_t NtQueryInformationFile(
|
||||
out_length = sizeof(*info);
|
||||
break;
|
||||
}
|
||||
case XFileAlignmentInformation: {
|
||||
// Requested by XMountUtilityDrive XAM-task
|
||||
auto info = info_ptr.as<uint32_t*>();
|
||||
*info = 0; // FILE_BYTE_ALIGNMENT?
|
||||
out_length = sizeof(*info);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
// Unsupported, for now.
|
||||
assert_always();
|
||||
|
||||
Reference in New Issue
Block a user