From 77657c22c950dc1d5404df1cac7ce06e0cf8fa24 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Wed, 4 Sep 2019 23:47:26 +0200 Subject: [PATCH] [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);