[Kernel] Allow 0 return for MmQueryAddressProtect.

This commit is contained in:
gibbed 2020-12-04 15:06:26 -06:00 committed by Rick Gibbed
parent d2cf0167fd
commit d420215de1
1 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@ dword_result_t MmQueryAddressProtect(dword_t base_address) {
if (!heap->QueryProtect(base_address, &access)) {
access = 0;
}
access = ToXdkProtectFlags(access);
access = !access ? 0 : ToXdkProtectFlags(access);
return access;
}