[pkg-wine-party] [wine] 137/238: setupapi: Make sure DeviceInterfaceData->cbSize is initialized in SetupDiEnumDeviceInterfaces.
Michael Gilbert
mgilbert at moszumanska.debian.org
Sat Apr 5 04:21:12 UTC 2014
This is an automated email from the git hooks/post-receive script.
mgilbert pushed a commit to branch master
in repository wine.
commit 8d854a4830776aaacb70161709db315d54eb77f0
Author: Austin English <austinenglish at gmail.com>
Date: Fri Mar 14 19:45:19 2014 -0400
setupapi: Make sure DeviceInterfaceData->cbSize is initialized in SetupDiEnumDeviceInterfaces.
---
dlls/setupapi/devinst.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/setupapi/devinst.c b/dlls/setupapi/devinst.c
index 33dea82..ef56d2b 100644
--- a/dlls/setupapi/devinst.c
+++ b/dlls/setupapi/devinst.c
@@ -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 =
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wine/wine.git
More information about the pkg-wine-party
mailing list