[MOUNTMGR] Fix global symbolic link creations
authorPierre Schweitzer <pierre@reactos.org>
Wed, 4 Sep 2019 21:47:26 +0000 (23:47 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Thu, 5 Sep 2019 06:36:19 +0000 (08:36 +0200)
They were wrongly pointing to the original target once rewritten
instead of pointing to the proper target: the device.

This notably fixes opening the MountMgr device from user
mode (to perform IOCTL calls, for instance), and might
also fix various bugs dealing with global namespaces.
This might have some various effects in ReactOS~.

drivers/filters/mountmgr/symlink.c

index 061e671..254eb2f 100644 (file)
@@ -124,7 +124,7 @@ GlobalCreateSymbolicLink(IN PUNICODE_STRING DosName,
     }
 
     /* Then, create the symlink */
-    Status = IoCreateSymbolicLink(&GlobalName, DosName);
+    Status = IoCreateSymbolicLink(&GlobalName, DeviceName);
 
     FreePool(GlobalName.Buffer);