setupapi: Return the interface's device from SetupDiGetDeviceInterfaceDetailA/W.

This commit is contained in:
Juan Lang 2007-09-21 17:06:46 -07:00 committed by Alexandre Julliard
parent 5ce7fcae8e
commit 443cfda4a6
1 changed files with 4 additions and 0 deletions

View File

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