On cleanup, only take the quick path if the file was already orphaned

CORE-11327

svn path=/trunk/; revision=75481
This commit is contained in:
Pierre Schweitzer 2017-08-04 19:18:42 +00:00
parent e010523b86
commit 6afca05215

View 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);