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.
PDEVICE_INFORMATION DeviceInformation = NULL, DeviceInfo;
/* Get device name */
PDEVICE_INFORMATION DeviceInformation = NULL, DeviceInfo;
/* Get device name */
- Status = QueryDeviceInformation(SymbolicLinkName,
+ Status = QueryDeviceInformation(DeviceName,
&TargetDeviceName,
NULL, NULL, NULL,
NULL, NULL, NULL);
&TargetDeviceName,
NULL, NULL, NULL,
NULL, NULL, NULL);