Author: gadamopoulos
Date: Sun Apr 23 11:12:48 2017
New Revision: 74392
URL:
http://svn.reactos.org/svn/reactos?rev=74392&view=rev
Log:
[NTOSKRNL] CcPurgeCacheSection: Check if SharedCacheMap is NULL. Change suggested by
ThFabba. CORE-13115
Modified:
trunk/reactos/ntoskrnl/cc/fs.c
Modified: trunk/reactos/ntoskrnl/cc/fs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cc/fs.c?rev=74392…
==============================================================================
--- trunk/reactos/ntoskrnl/cc/fs.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/cc/fs.c [iso-8859-1] Sun Apr 23 11:12:48 2017
@@ -153,6 +153,8 @@
}
SharedCacheMap = SectionObjectPointer->SharedCacheMap;
+ if (!SharedCacheMap)
+ return FALSE;
StartOffset = FileOffset != NULL ? FileOffset->QuadPart : 0;
if (Length == 0 || FileOffset == NULL)