[NTOSKRNL] CcPurgeCacheSection: Check if SharedCacheMap is NULL. Change suggested...
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Sun, 23 Apr 2017 11:12:48 +0000 (11:12 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Sun, 23 Apr 2017 11:12:48 +0000 (11:12 +0000)
svn path=/trunk/; revision=74392

reactos/ntoskrnl/cc/fs.c

index 40476d5..4ecd553 100644 (file)
@@ -153,6 +153,8 @@ CcPurgeCacheSection (
     }
 
     SharedCacheMap = SectionObjectPointer->SharedCacheMap;
+    if (!SharedCacheMap)
+        return FALSE;
 
     StartOffset = FileOffset != NULL ? FileOffset->QuadPart : 0;
     if (Length == 0 || FileOffset == NULL)