[NTOS:MM:PS] Little fixes for NTDLL loading (#7707)

- [NTOS:PS] `STATUS_INVALID_IMAGE_PROTECT` returned by `MmCheckSystemImage` should be a fatal error too.
- [NTOS:PS] Fix object attributes for opening NTDLL.
- [NTOS:MM] Remove `MmCheckSystemImage` unused parameter.
- [NTOS:MM] Inline `MmVerifyImageIsOkForMpUse` in `MmCheckSystemImage`, reducing a call to `RtlImageNtHeader`.
This commit is contained in:
Ratin Gao
2025-03-04 03:36:21 +08:00
committed by GitHub
parent 7c23a2e38e
commit 4d605ec26f
3 changed files with 11 additions and 11 deletions

View File

@@ -1652,9 +1652,7 @@ MmUnloadSystemImage(
NTSTATUS
NTAPI
MmCheckSystemImage(
IN HANDLE ImageHandle,
IN BOOLEAN PurgeSection
);
_In_ HANDLE ImageHandle);
NTSTATUS
NTAPI