mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[MOUNTMGR] Fix broken check
Only mark volume mounted if it's not waiting for unloading CORE-13882
This commit is contained in:
parent
b804b7fa9e
commit
5c678a76a6
1 changed files with 3 additions and 2 deletions
|
@ -624,9 +624,10 @@ ReconcileThisDatabaseWithMasterWorker(IN PVOID Parameter)
|
|||
goto ReleaseRDS;
|
||||
}
|
||||
|
||||
if (DeviceObject->Flags & 1)
|
||||
/* Mark mounted only if not unloading */
|
||||
if (!(DeviceObject->Flags & DO_UNLOAD_PENDING))
|
||||
{
|
||||
_InterlockedExchangeAdd(&ListDeviceInfo->MountState, 1u);
|
||||
InterlockedExchangeAdd(&ListDeviceInfo->MountState, 1);
|
||||
}
|
||||
|
||||
ObDereferenceObject(FileObject);
|
||||
|
|
Loading…
Reference in a new issue