[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~.
This commit is contained in:
Pierre Schweitzer 2019-09-04 23:47:26 +02:00
parent 6f353f7747
commit 77657c22c9
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View 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);