Commit 53b28753 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

setupapi: Always initialize output parameter to avoid crash in buggy applications.

parent 73e50ba6
......@@ -2821,6 +2821,8 @@ BOOL WINAPI SetupDiEnumDeviceInterfaces(
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
/* In case application fails to check return value, clear output */
memset(DeviceInterfaceData, 0, sizeof(*DeviceInterfaceData));
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