https://git.reactos.org/?p=reactos.git;a=commitdiff;h=225a1e92bdc58314c831b5d1c9f5a7d3358da8c9

commit 225a1e92bdc58314c831b5d1c9f5a7d3358da8c9
Author:     Pierre Schweitzer <pie...@reactos.org>
AuthorDate: Sat Oct 19 16:34:38 2019 +0200
Commit:     Pierre Schweitzer <pie...@reactos.org>
CommitDate: Sat Oct 19 16:59:57 2019 +0200

    [MOUNTMGR] Query proper device when creating mount point
    
    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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/filters/mountmgr/point.c b/drivers/filters/mountmgr/point.c
index 35fe8bb2435..a2469b0de82 100644
--- a/drivers/filters/mountmgr/point.c
+++ b/drivers/filters/mountmgr/point.c
@@ -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);

Reply via email to