setupapi: Return the interface's device from SetupDiGetDeviceInterfaceDetailA/W.
This commit is contained in:
parent
5ce7fcae8e
commit
443cfda4a6
|
@ -2401,6 +2401,8 @@ BOOL WINAPI SetupDiGetDeviceInterfaceDetailA(
|
|||
NULL, NULL);
|
||||
else
|
||||
DeviceInterfaceDetailData->DevicePath[0] = '\0';
|
||||
if (DeviceInfoData && DeviceInfoData->cbSize == sizeof(SP_DEVINFO_DATA))
|
||||
memcpy(DeviceInfoData, info->device, sizeof(SP_DEVINFO_DATA));
|
||||
ret = TRUE;
|
||||
}
|
||||
else
|
||||
|
@ -2467,6 +2469,8 @@ BOOL WINAPI SetupDiGetDeviceInterfaceDetailW(
|
|||
lstrcpyW(DeviceInterfaceDetailData->DevicePath, info->symbolicLink);
|
||||
else
|
||||
DeviceInterfaceDetailData->DevicePath[0] = '\0';
|
||||
if (DeviceInfoData && DeviceInfoData->cbSize == sizeof(SP_DEVINFO_DATA))
|
||||
memcpy(DeviceInfoData, info->device, sizeof(SP_DEVINFO_DATA));
|
||||
ret = TRUE;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue