mirror of
https://github.com/reactos/reactos.git
synced 2026-06-02 09:20:43 +08:00
[MOUNTMGR] Fix MountState usage in MountMgrTargetDeviceNotification
CORE-13882
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user