Hi. This patch fixes a "division by zero", when using a range of 0 for a trackbar (as mplayer does). Changlog: dlls/comctl32/trackbar.c: fixed division by zero, when range 0.
Index: dlls/comctl32/trackbar.c =================================================================== RCS file: /home/wine/wine/dlls/comctl32/trackbar.c,v retrieving revision 1.39 diff -u -r1.39 trackbar.c --- dlls/comctl32/trackbar.c 12 Sep 2002 22:26:26 -0000 1.39 +++ dlls/comctl32/trackbar.c 13 Oct 2002 20:21:25 -0000 @@ -407,6 +407,8 @@ } range = infoPtr->lRangeMax - infoPtr->lRangeMin; + if (range == 0) + range = 1; /* to avoid division by zero */ if (flags & TIC_SELECTIONMARK) { indent = (flags & TIC_SELECTIONMARKMIN) ? -1 : 1;
Michael Günnewig