projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c678a7
)
[MOUNTMGR] Fix MountState usage in MountMgrTargetDeviceNotification
author
Pierre Schweitzer
<pierre@reactos.org>
Fri, 13 Sep 2019 18:04:53 +0000
(20:04 +0200)
committer
Pierre Schweitzer
<pierre@reactos.org>
Fri, 13 Sep 2019 18:08:39 +0000
(20:08 +0200)
CORE-13882
drivers/filters/mountmgr/notify.c
patch
|
blob
|
history
diff --git
a/drivers/filters/mountmgr/notify.c
b/drivers/filters/mountmgr/notify.c
index
8b7c676
..
97bc947
100644
(file)
--- a/
drivers/filters/mountmgr/notify.c
+++ b/
drivers/filters/mountmgr/notify.c
@@
-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,
-
TRU
E) == TRUE)
+
FALS
E) == TRUE)
{
InterlockedDecrement(&(DeviceInformation->MountState));
}
+ /* Otherwise, start mounting the device and first, reconcile its DB if required */
else
{
if (DeviceInformation->NeedsReconcile)