mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00:00
[WINESYNC] setupapi: Always initialize output parameter to avoid crash in buggy applications.
wine commit id 53b287530961beaaae89bd063bc0d63ef41036ff by Juan Lang <juan.lang@gmail.com>
This commit is contained in:
parent
29456f347f
commit
52d2567f80
|
@ -2831,6 +2831,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 =
|
||||
|
|
|
@ -5,4 +5,4 @@ files:
|
|||
dlls/setupapi/misc.c: dll/win32/setupapi/misc.c
|
||||
dlls/setupapi/stubs.c: dll/win32/setupapi/stubs.c
|
||||
tags:
|
||||
wine: a326c9ee67d5a66b9634ae8e0850a99ba5fec26c
|
||||
wine: 53b287530961beaaae89bd063bc0d63ef41036ff
|
||||
|
|
Loading…
Reference in a new issue