Author: cgutman
Date: Sat Dec 24 05:43:36 2011
New Revision: 54747
URL:
http://svn.reactos.org/svn/reactos?rev=54747&view=rev
Log:
[NTOSKRNL]
- Fix a reference count check in the flush path (broken by r54745)
Modified:
trunk/reactos/ntoskrnl/cc/view.c
Modified: trunk/reactos/ntoskrnl/cc/view.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cc/view.c?rev=547…
==============================================================================
--- trunk/reactos/ntoskrnl/cc/view.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/cc/view.c [iso-8859-1] Sat Dec 24 05:43:36 2011
@@ -228,7 +228,9 @@
}
ASSERT(current->Dirty);
- if (current->ReferenceCount > 1)
+
+ /* One reference is added above */
+ if (current->ReferenceCount > 2)
{
KeReleaseMutex(¤t->Mutex, 0);
current->Bcb->Callbacks->ReleaseFromLazyWrite(