winmm/tests: initialize MIXERLINECONTROLSA before calling mixerGetLineControlsA
Dan Kegel
dank at kegel.com
Fri Jun 20 22:20:42 CDT 2008
The test wanted to see what happened if you didn't
initialize the struct's size field to the right value,
but it forgot to set it to any value. Clear the
whole struct; this sets the size field to a wrong value
so we still get the error the test was after,
and gets rid of the Valgrind warning:
Conditional jump or move depends on uninitialised value(s)
at mixerGetLineControlsA (winmm.c:518)
by mixer_test_deviceA (mixer.c:516)
by mixer_testsA (mixer.c:1001)
Uninitialised value was created by a stack allocation
at mixer_test_deviceA (mixer.c:352)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmm-tests-mixer-getlinecontrols.patch
Type: text/x-diff
Size: 692 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080620/f3af7ca3/attachment.patch
More information about the wine-patches
mailing list