Author: mbosma
Date: Sat Jan 6 08:03:56 2007
New Revision: 25328
URL:
http://svn.reactos.org/svn/reactos?rev=25328&view=rev
Log:
I got the thing with the flags wrong.
Modified:
branches/cache_manager_rewrite/cc/pin.c
Modified: branches/cache_manager_rewrite/cc/pin.c
URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/cc/pin.c?…
==============================================================================
--- branches/cache_manager_rewrite/cc/pin.c (original)
+++ branches/cache_manager_rewrite/cc/pin.c Sat Jan 6 08:03:56 2007
@@ -54,14 +54,15 @@
ASSERT (FileOffset);
ASSERT (piBcb);
ASSERT (pBuffer);
-
- if (Flags)
- {
- DPRINT1("No Flags implemented yet.");
+ ASSERT (Flags & MAP_WAIT);
+
+ if (!(Flags & MAP_WAIT))
+ {
+ DPRINT1("Reading without MAP_WAIT flag is not implented yet.\n");
*piBcb = NULL;
*pBuffer = NULL;
return FALSE;
- }
+ }
Bcb = FileObject->SectionObjectPointer->SharedCacheMap;