Author: cgutman Date: Mon Sep 8 13:06:24 2008 New Revision: 36066
URL: http://svn.reactos.org/svn/reactos?rev=36066&view=rev Log: - Check that memory allocation succeeded
Modified: trunk/reactos/drivers/filesystems/cdfs/fcb.c
Modified: trunk/reactos/drivers/filesystems/cdfs/fcb.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/cdfs/fc... ============================================================================== --- trunk/reactos/drivers/filesystems/cdfs/fcb.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/cdfs/fcb.c [iso-8859-1] Mon Sep 8 13:06:24 2008 @@ -73,6 +73,8 @@ PFCB Fcb;
Fcb = ExAllocatePoolWithTag(NonPagedPool, sizeof(FCB), TAG_FCB); + if(!Fcb) return NULL; + RtlZeroMemory(Fcb, sizeof(FCB));
if (FileName)