Add another failure check to EngAllocSectionMem

svn path=/branches/reactos-yarotows/; revision=47610
This commit is contained in:
Timo Kreuzer 2010-06-06 05:47:31 +00:00
parent 98f686c8fc
commit f705d5861b

View file

@ -219,6 +219,11 @@ EngAllocSectionMem(
/* 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,