Re: winmm: fix uninitialized variable that caused near-infinite loop
25 Oct
2007
25 Oct
'07
12:23 p.m.
"Dan Kegel" <dank(a)kegel.com> writes:
Without this patch, winmm/tests/mixer.c appears to hang on one of my machines.
I think the problem was capsA was uninitialized in: for (d=0;d<capsA.cDestinations;d++) {
That's just hiding the bug. If mixerGetDevCapsA failed we shouldn't go on to use the data that it hasn't returned, we should abort the test. -- Alexandre Julliard julliard(a)winehq.org
6624
Age (days ago)
6624
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard