winmm: fix uninitialized variable that caused near-infinite loop
Alexandre Julliard
julliard at winehq.org
Thu Oct 25 07:23:35 CDT 2007
"Dan Kegel" <dank at 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 at winehq.org
More information about the wine-devel
mailing list