Commit 443cfda4 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

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

parent 5ce7fcae
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment