setupapi/tests: Pass the correct size to SetupDiGetDeviceInterfaceDetailA.

This commit is contained in:
Alexandre Julliard 2009-01-09 23:22:42 +01:00
parent 8cd82dda1f
commit e1a4d068d1

View file

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