winmm: Only fill in the MIXERLINEA struct if the call to mixerGetLineInfoW succeeds.

Huw Davies huw at
Fri Jul 18 06:05:52 CDT 2008

Fixes Valgrind warnings like:
 Conditional jump or move depends on uninitialised value(s)
    at  strlenW (unicode.h:212)
    by  WideCharToMultiByte (locale.c:1902)
    by  mixerGetLineInfoA (winmm.c:664)
    by  mixer_test_deviceA (mixer.c:398)
    by  mixer_testsA (mixer.c:988)
    by  func_mixer (mixer.c:1021)
    by  run_test (test.h:488)
    by  main (test.h:537)
  Uninitialised value was created by a stack allocation
    at  mixerGetLineInfoA (winmm.c:617)
 dlls/winmm/winmm.c |   44 +++++++++++++++++++++++---------------------
 1 files changed, 23 insertions(+), 21 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: f894362517fdca4fe769368ca9376bd239447e58.diff
Type: text/x-patch
Size: 2593 bytes
Desc: not available
Url : 

More information about the wine-patches mailing list