mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 21:44:31 +00:00
[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:
parent
97b64c45c6
commit
9666f00572
|
@ -1110,7 +1110,7 @@ MmInitializeProcessAddressSpace(IN PEPROCESS Process,
|
|||
0,
|
||||
NULL,
|
||||
&ViewSize,
|
||||
0,
|
||||
ViewUnmap,
|
||||
MEM_COMMIT,
|
||||
PAGE_READWRITE);
|
||||
|
||||
|
|
|
@ -207,7 +207,7 @@ EngMapSection(
|
|||
pSection->cjViewSize,
|
||||
NULL,
|
||||
&pSection->cjViewSize,
|
||||
0,
|
||||
ViewUnmap,
|
||||
0,
|
||||
PAGE_READWRITE);
|
||||
if (!NT_SUCCESS(Status))
|
||||
|
|
Loading…
Reference in a new issue