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/csr…
==============================================================================
--- 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))
{