[RDBSS]
authorPierre Schweitzer <pierre@reactos.org>
Fri, 4 Aug 2017 19:18:42 +0000 (19:18 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Fri, 4 Aug 2017 19:18:42 +0000 (19:18 +0000)
On cleanup, only take the quick path if the file was already orphaned

CORE-11327

svn path=/trunk/; revision=75481

reactos/sdk/lib/drivers/rdbsslib/rdbss.c

index 0f27fe9..0d1863d 100644 (file)
@@ -1847,8 +1847,8 @@ RxCommonCleanup(
 
     Fobx->AssociatedFileObject = NULL;
 
-    /* In case SRV_OPEN used is part of FCB */
-    if (BooleanFlagOn(Fcb->FcbState, FCB_STATE_SRVOPEN_USED))
+    /* In case it was already orphaned */
+    if (BooleanFlagOn(Fcb->FcbState, FCB_STATE_ORPHANED))
     {
         ASSERT(Fcb->UncleanCount != 0);
         InterlockedDecrement((volatile long *)&Fcb->UncleanCount);