projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NTOSKRNL] CcPurgeCacheSection: Check if SharedCacheMap is NULL. Change suggested...
[reactos.git]
/
reactos
/
ntoskrnl
/
cc
/
fs.c
diff --git
a/reactos/ntoskrnl/cc/fs.c
b/reactos/ntoskrnl/cc/fs.c
index
40476d5
..
4ecd553
100644
(file)
--- a/
reactos/ntoskrnl/cc/fs.c
+++ b/
reactos/ntoskrnl/cc/fs.c
@@
-153,6
+153,8
@@
CcPurgeCacheSection (
}
SharedCacheMap = SectionObjectPointer->SharedCacheMap;
+ if (!SharedCacheMap)
+ return FALSE;
StartOffset = FileOffset != NULL ? FileOffset->QuadPart : 0;
if (Length == 0 || FileOffset == NULL)