[WIN32K][NTOS] Fix parameter to MmMapViewOfSection

The code was passing 0 instead of SECTION_INHERIT::ViewUnmap (2). 0 isn't even a proper constant to be used here. It worked, because MmMapViewOfSection only compares against ViewShare (1) and treats everything else as ViewUnmap.
This commit is contained in:
Timo Kreuzer 2023-04-02 00:11:37 +03:00
parent 97b64c45c6
commit 9666f00572
2 changed files with 2 additions and 2 deletions

View file

@ -1110,7 +1110,7 @@ MmInitializeProcessAddressSpace(IN PEPROCESS Process,
0,
NULL,
&ViewSize,
0,
ViewUnmap,
MEM_COMMIT,
PAGE_READWRITE);

View file

@ -207,7 +207,7 @@ EngMapSection(
pSection->cjViewSize,
NULL,
&pSection->cjViewSize,
0,
ViewUnmap,
0,
PAGE_READWRITE);
if (!NT_SUCCESS(Status))