[MOUNTMGR] Query proper device when creating mount point
authorPierre Schweitzer <pierre@reactos.org>
Sat, 19 Oct 2019 14:34:38 +0000 (16:34 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 19 Oct 2019 14:59:57 +0000 (16:59 +0200)
We must query the target device, and not the symbolic link
we attempt to create. The later will always fail as it doesn't
exist yet.

This fixes MountMgrCreatePointWorker not working.

drivers/filters/mountmgr/point.c

index 35fe8bb..a2469b0 100644 (file)
@@ -44,7 +44,7 @@ MountMgrCreatePointWorker(IN PDEVICE_EXTENSION DeviceExtension,
     PDEVICE_INFORMATION DeviceInformation = NULL, DeviceInfo;
 
     /* Get device name */
-    Status = QueryDeviceInformation(SymbolicLinkName,
+    Status = QueryDeviceInformation(DeviceName,
                                     &TargetDeviceName,
                                     NULL, NULL, NULL,
                                     NULL, NULL, NULL);