mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[MOUNTMGR] Fix MountState usage in MountMgrTargetDeviceNotification
CORE-13882
This commit is contained in:
parent
5c678a76a6
commit
0a5f86d44a
1 changed files with 3 additions and 1 deletions
|
@ -247,12 +247,14 @@ MountMgrTargetDeviceNotification(IN PVOID NotificationStructure,
|
|||
*/
|
||||
else if (IsEqualGUID(&(Notification->Event), &GUID_IO_VOLUME_MOUNT))
|
||||
{
|
||||
/* If we were already mounted, then mark us unmounted */
|
||||
if (InterlockedCompareExchange(&(DeviceInformation->MountState),
|
||||
FALSE,
|
||||
TRUE) == TRUE)
|
||||
FALSE) == TRUE)
|
||||
{
|
||||
InterlockedDecrement(&(DeviceInformation->MountState));
|
||||
}
|
||||
/* Otherwise, start mounting the device and first, reconcile its DB if required */
|
||||
else
|
||||
{
|
||||
if (DeviceInformation->NeedsReconcile)
|
||||
|
|
Loading…
Reference in a new issue