setupapi/tests: Pass the correct size to SetupDiGetDeviceInterfaceDetailA.
This commit is contained in:
parent
8cd82dda1f
commit
e1a4d068d1
|
@ -1088,7 +1088,7 @@ static void testRegisterAndGetDetail(void)
|
|||
detail = HeapAlloc(GetProcessHeap(), 0, dwSize);
|
||||
if (detail)
|
||||
{
|
||||
detail->cbSize = FIELD_OFFSET(SP_DEVICE_INTERFACE_DETAIL_DATA_A, DevicePath) + sizeof(char);
|
||||
detail->cbSize = sizeof(*detail);
|
||||
SetLastError(0xdeadbeef);
|
||||
ret = pSetupDiGetDeviceInterfaceDetailA(set, &interfaceData,
|
||||
detail, dwSize, &dwSize, NULL);
|
||||
|
|
Loading…
Reference in New Issue