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( ...@@ -2401,6 +2401,8 @@ BOOL WINAPI SetupDiGetDeviceInterfaceDetailA(
NULL, NULL); NULL, NULL);
else else
DeviceInterfaceDetailData->DevicePath[0] = '\0'; DeviceInterfaceDetailData->DevicePath[0] = '\0';
if (DeviceInfoData && DeviceInfoData->cbSize == sizeof(SP_DEVINFO_DATA))
memcpy(DeviceInfoData, info->device, sizeof(SP_DEVINFO_DATA));
ret = TRUE; ret = TRUE;
} }
else else
...@@ -2467,6 +2469,8 @@ BOOL WINAPI SetupDiGetDeviceInterfaceDetailW( ...@@ -2467,6 +2469,8 @@ BOOL WINAPI SetupDiGetDeviceInterfaceDetailW(
lstrcpyW(DeviceInterfaceDetailData->DevicePath, info->symbolicLink); lstrcpyW(DeviceInterfaceDetailData->DevicePath, info->symbolicLink);
else else
DeviceInterfaceDetailData->DevicePath[0] = '\0'; DeviceInterfaceDetailData->DevicePath[0] = '\0';
if (DeviceInfoData && DeviceInfoData->cbSize == sizeof(SP_DEVINFO_DATA))
memcpy(DeviceInfoData, info->device, sizeof(SP_DEVINFO_DATA));
ret = TRUE; ret = TRUE;
} }
else 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