https://git.reactos.org/?p=reactos.git;a=commitdiff;h=77657c22c950dc1d5404d…
commit 77657c22c950dc1d5404df1cac7ce06e0cf8fa24
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Wed Sep 4 23:47:26 2019 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Thu Sep 5 08:36:19 2019 +0200
[MOUNTMGR] Fix global symbolic link creations
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/filters/mountmgr/symlink.c b/drivers/filters/mountmgr/symlink.c
index 061e6717e77..254eb2fb452 100644
--- a/drivers/filters/mountmgr/symlink.c
+++ b/drivers/filters/mountmgr/symlink.c
@@ -124,7 +124,7 @@ GlobalCreateSymbolicLink(IN PUNICODE_STRING DosName,
}
/* Then, create the symlink */
- Status = IoCreateSymbolicLink(&GlobalName, DosName);
+ Status = IoCreateSymbolicLink(&GlobalName, DeviceName);
FreePool(GlobalName.Buffer);