[ros-diffs] [tkreuzer] 47610: [WIN32K] Add another failure check to EngAllocSectionMem

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Sun Jun 6 07:47:32 CEST 2010


Author: tkreuzer
Date: Sun Jun  6 07:47:31 2010
New Revision: 47610

URL: http://svn.reactos.org/svn/reactos?rev=47610&view=rev
Log:
[WIN32K]
Add another failure check to EngAllocSectionMem

Modified:
    branches/reactos-yarotows/subsystems/win32/win32k/eng/mapping.c

Modified: branches/reactos-yarotows/subsystems/win32/win32k/eng/mapping.c
URL: http://svn.reactos.org/svn/reactos/branches/reactos-yarotows/subsystems/win32/win32k/eng/mapping.c?rev=47610&r1=47609&r2=47610&view=diff
==============================================================================
--- branches/reactos-yarotows/subsystems/win32/win32k/eng/mapping.c [iso-8859-1] (original)
+++ branches/reactos-yarotows/subsystems/win32/win32k/eng/mapping.c [iso-8859-1] Sun Jun  6 07:47:31 2010
@@ -219,6 +219,11 @@
 
     /* Allocate a section object */
     pSection = EngCreateSection(fl, cjSize, ulTag);
+    if (!pSection)
+    {
+        *ppvSection = NULL;
+        return NULL;
+    }
 
     /* Map the section in session space */
     Status = MmMapViewInSessionSpace(pSection->pvSectionObject,




More information about the Ros-diffs mailing list