[ros-diffs] [sir_richard] 49178: [CSRSS]: Should use MEM_COMMIT | MEM_RESERVE, not just MEM_COMMIT when requesting a range of adress space that wasn't already reserved. This works in ReactOS because, well, no ...
sir_richard at svn.reactos.org
sir_richard at svn.reactos.org
Sat Oct 16 21:04:51 UTC 2010
Author: sir_richard
Date: Sat Oct 16 21:04:50 2010
New Revision: 49178
URL: http://svn.reactos.org/svn/reactos?rev=49178&view=rev
Log:
[CSRSS]: Should use MEM_COMMIT | MEM_RESERVE, not just MEM_COMMIT when requesting a range of adress space that wasn't already reserved. This works in ReactOS because, well, no reason to explain why, but it wouldn't work on Windows or with a VAD-based kernel.
Modified:
trunk/reactos/subsystems/win32/csrss/csrsrv/init.c
Modified: trunk/reactos/subsystems/win32/csrss/csrsrv/init.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/csrsrv/init.c?rev=49178&r1=49177&r2=49178&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/csrss/csrsrv/init.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/csrss/csrsrv/init.c [iso-8859-1] Sat Oct 16 21:04:50 2010
@@ -107,7 +107,7 @@
&BaseAddress,
0,
&ViewSize,
- MEM_COMMIT,
+ MEM_RESERVE | MEM_COMMIT,
PAGE_EXECUTE_READWRITE);
if (!NT_SUCCESS(Status))
{
More information about the Ros-diffs
mailing list