Author: arty
Date: Sun Aug 17 16:14:51 2008
New Revision: 35417
URL:
http://svn.reactos.org/svn/reactos?rev=35417&view=rev
Log:
Tolerate NULL SectionObjectPointer.
Modified:
branches/arty-newcc/ntoskrnl/cache/pinsup.c
Modified: branches/arty-newcc/ntoskrnl/cache/pinsup.c
URL:
http://svn.reactos.org/svn/reactos/branches/arty-newcc/ntoskrnl/cache/pinsu…
==============================================================================
--- branches/arty-newcc/ntoskrnl/cache/pinsup.c [iso-8859-1] (original)
+++ branches/arty-newcc/ntoskrnl/cache/pinsup.c [iso-8859-1] Sun Aug 17 16:14:51 2008
@@ -220,9 +220,10 @@
PNOCC_BCB Bcb;
DPRINT("AllocateCacheSections: FileObject %x\n", FileObject);
- DPRINT
- ("AllocateCacheSections: FileObject->SectionObjectPointer: %x\n",
- FileObject->SectionObjectPointer);
+
+ if (!FileObject->SectionObjectPointer)
+ return INVALID_CACHE;
+
Map = (PNOCC_CACHE_MAP)FileObject->SectionObjectPointer->SharedCacheMap;
if (!Map)