Commit e1a4d068 authored by Alexandre Julliard's avatar Alexandre Julliard

setupapi/tests: Pass the correct size to SetupDiGetDeviceInterfaceDetailA.

parent 8cd82dda
......@@ -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);
......
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