[ros-diffs] [cgutman] 36066: - Check that memory allocation succeeded

cgutman at svn.reactos.org cgutman at svn.reactos.org
Mon Sep 8 20:06:24 CEST 2008


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/fcb.c?rev=36066&r1=36065&r2=36066&view=diff
==============================================================================
--- 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)



More information about the Ros-diffs mailing list