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/win3... ============================================================================== --- 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,