[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.
This commit is contained in:
Pierre Schweitzer 2019-10-19 16:34:38 +02:00
parent 7b650d2c3e
commit 225a1e92bd
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

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