Author: fireball
Date: Sat Jan 19 20:24:52 2008
New Revision: 31893
URL:
http://svn.reactos.org/svn/reactos?rev=31893&view=rev
Log:
- Add ASSERTs.
Modified:
trunk/reactos/ntoskrnl/cc/pin.c
Modified: trunk/reactos/ntoskrnl/cc/pin.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cc/pin.c?rev=3189…
==============================================================================
--- trunk/reactos/ntoskrnl/cc/pin.c (original)
+++ trunk/reactos/ntoskrnl/cc/pin.c Sat Jan 19 20:24:52 2008
@@ -44,6 +44,11 @@
Length, Flags, pBcb, pBuffer);
ReadOffset = (ULONG)FileOffset->QuadPart;
+
+ ASSERT(FileObject);
+ ASSERT(FileObject->SectionObjectPointer);
+ ASSERT(FileObject->SectionObjectPointer->SharedCacheMap);
+
Bcb = FileObject->SectionObjectPointer->SharedCacheMap;
ASSERT(Bcb);