{
PVFATFCB pFcb;
PVFATCCB pCcb;
+ BOOLEAN IsVolume;
NTSTATUS Status = STATUS_SUCCESS;
DPRINT("VfatCloseFile(DeviceExt %p, FileObject %p)\n",
return STATUS_SUCCESS;
}
+ IsVolume = BooleanFlagOn(pFcb->Flags, FCB_IS_VOLUME);
+
if (pCcb)
{
vfatDestroyCCB(pCcb);
FileObject->SectionObjectPointer = NULL;
#ifdef ENABLE_SWAPOUT
- if (BooleanFlagOn(pFcb->Flags, FCB_IS_VOLUME) && DeviceExt->OpenHandleCount == 0)
+ if (IsVolume && DeviceExt->OpenHandleCount == 0)
{
VfatCheckForDismount(DeviceExt, FALSE);
}