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/copysu... ============================================================================== --- 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,