winmm: Initialize AUXCAPSA.wReserved1 returned from auxGetDevCapsA() (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e528765af4
commit
349f834976
|
@ -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)));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue