[NTOSKRNL]

- Fix a reference count check in the flush path (broken by r54745)

svn path=/trunk/; revision=54747
This commit is contained in:
Cameron Gutman
2011-12-24 05:43:36 +00:00
parent 6ababb3a3f
commit 835bf4292b
+3 -1
View File
@@ -228,7 +228,9 @@ CcRosFlushDirtyPages(ULONG Target, PULONG Count, BOOLEAN Wait)
}
ASSERT(current->Dirty);
if (current->ReferenceCount > 1)
/* One reference is added above */
if (current->ReferenceCount > 2)
{
KeReleaseMutex(&current->Mutex, 0);
current->Bcb->Callbacks->ReleaseFromLazyWrite(