Module: wine Branch: master Commit: 349f834976770baf6646ff812a807706d6e0c534 URL: http://source.winehq.org/git/wine.git/?a=commit;h=349f834976770baf6646ff812a...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Mon Nov 16 02:42:40 2015 +0300
winmm: Initialize AUXCAPSA.wReserved1 returned from auxGetDevCapsA() (Coverity).
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/winmm/winmm.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/winmm/winmm.c b/dlls/winmm/winmm.c index 43f7268..a626a79 100644 --- a/dlls/winmm/winmm.c +++ b/dlls/winmm/winmm.c @@ -229,6 +229,7 @@ UINT WINAPI auxGetDevCapsA(UINT_PTR uDeviceID, LPAUXCAPSA lpCaps, UINT uSize) WideCharToMultiByte( CP_ACP, 0, acW.szPname, -1, acA.szPname, sizeof(acA.szPname), NULL, NULL ); acA.wTechnology = acW.wTechnology; + acA.wReserved1 = 0; acA.dwSupport = acW.dwSupport; memcpy(lpCaps, &acA, min(uSize, sizeof(acA))); }