Commit 8d854a48 authored by Austin English's avatar Austin English Committed by Alexandre Julliard

setupapi: Make sure DeviceInterfaceData->cbSize is initialized in SetupDiEnumDeviceInterfaces.

parent 7071bf19
......@@ -2795,8 +2795,11 @@ BOOL WINAPI SetupDiEnumDeviceInterfaces(HDEVINFO DeviceInfoSet, PSP_DEVINFO_DATA
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
/* In case application fails to check return value, clear output */
memset(DeviceInterfaceData, 0, sizeof(*DeviceInterfaceData));
DeviceInterfaceData->cbSize = sizeof(SP_DEVICE_INTERFACE_DATA);
if (DeviceInfoData)
{
struct DeviceInfo *devInfo =
......
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