[ros-diffs] [jgardou] 55644: [NTOSKRNL] - One can't only use MEM_COMMIT for reserving memory

jgardou at svn.reactos.org jgardou at svn.reactos.org
Thu Feb 16 17:24:01 UTC 2012


Author: jgardou
Date: Thu Feb 16 17:24:01 2012
New Revision: 55644

URL: http://svn.reactos.org/svn/reactos?rev=55644&view=rev
Log:
[NTOSKRNL]
 - One can't only use MEM_COMMIT for reserving memory

Modified:
    trunk/reactos/ntoskrnl/ex/init.c

Modified: trunk/reactos/ntoskrnl/ex/init.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/init.c?rev=55644&r1=55643&r2=55644&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/ex/init.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ex/init.c [iso-8859-1] Thu Feb 16 17:24:01 2012
@@ -400,7 +400,7 @@
                                      (PVOID*)&ProcessParams,
                                      0,
                                      &Size,
-                                     MEM_COMMIT,
+                                     MEM_RESERVE | MEM_COMMIT,
                                      PAGE_READWRITE);
     if (!NT_SUCCESS(Status))
     {
@@ -429,7 +429,7 @@
                                      &EnvironmentPtr,
                                      0,
                                      &Size,
-                                     MEM_COMMIT,
+                                     MEM_RESERVE | MEM_COMMIT,
                                      PAGE_READWRITE);
     if (!NT_SUCCESS(Status))
     {




More information about the Ros-diffs mailing list