mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 17:01:28 +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,
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
&ViewSize,
|
&ViewSize,
|
||||||
0,
|
ViewUnmap,
|
||||||
MEM_COMMIT,
|
MEM_COMMIT,
|
||||||
PAGE_READWRITE);
|
PAGE_READWRITE);
|
||||||
|
|
||||||
|
|
|
@ -207,7 +207,7 @@ EngMapSection(
|
||||||
pSection->cjViewSize,
|
pSection->cjViewSize,
|
||||||
NULL,
|
NULL,
|
||||||
&pSection->cjViewSize,
|
&pSection->cjViewSize,
|
||||||
0,
|
ViewUnmap,
|
||||||
0,
|
0,
|
||||||
PAGE_READWRITE);
|
PAGE_READWRITE);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
|
|
Loading…
Reference in a new issue