[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:
emoose
2021-07-05 04:54:15 +01:00
committed by Rick Gibbed
parent eaab7998f7
commit e5725b5877
2 changed files with 67 additions and 0 deletions

View File

@@ -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();