[ros-diffs] [arty] 43106: Use Bcb before initialization. What I meant was just to check alignment here. Mostly for historical interest atm. Spotted by amine khaldi

arty at svn.reactos.org arty at svn.reactos.org
Mon Sep 21 20:24:39 CEST 2009


Author: arty
Date: Mon Sep 21 20:24:39 2009
New Revision: 43106

URL: http://svn.reactos.org/svn/reactos?rev=43106&view=rev
Log:
Use Bcb before initialization.  What I meant was just to check alignment 
here.  Mostly for historical interest atm.
Spotted by amine khaldi

Modified:
    branches/arty-newcc/ntoskrnl/cache/copysup.c

Modified: branches/arty-newcc/ntoskrnl/cache/copysup.c
URL: http://svn.reactos.org/svn/reactos/branches/arty-newcc/ntoskrnl/cache/copysup.c?rev=43106&r1=43105&r2=43106&view=diff
==============================================================================
--- branches/arty-newcc/ntoskrnl/cache/copysup.c [iso-8859-1] (original)
+++ branches/arty-newcc/ntoskrnl/cache/copysup.c [iso-8859-1] Mon Sep 21 20:24:39 2009
@@ -151,7 +151,7 @@
 			(FileObject,
 			 &CacheOffset,
 			 WriteLen,
-			 (CacheOffset.QuadPart == Bcb->FileOffset.QuadPart && 
+			 (!(CacheOffset.QuadPart & (CACHE_STRIPE - 1)) &&
 			  WriteLen == CACHE_STRIPE),
 			 Wait ? PIN_WAIT : PIN_IF_BCB,
 			 (PVOID*)&Bcb,




More information about the Ros-diffs mailing list