mirror of
https://github.com/aaru-dps/aaruremote.git
synced 2025-12-16 19:24:37 +00:00
Pass correct parameter when retrieving device number in Windows.
This commit is contained in:
@@ -594,7 +594,7 @@ UsbDevice_t* FindDrivePath(DeviceContext* ctx, GUID deviceGuid)
|
||||
// We start by getting the unique DeviceNumber of the given
|
||||
// DriveLetter. We'll use this later to find a matching
|
||||
// DevicePath "symbolic name"
|
||||
DWORD devNum = GetDeviceNumber(ctx->handle);
|
||||
DWORD devNum = GetDeviceNumber(ctx->device_path);
|
||||
return devNum < 0 ? NULL : FindDeviceNumber(devNum, deviceGuid);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user