Commit 2cf92565 authored by Michael Günnewig's avatar Michael Günnewig Committed by Alexandre Julliard

Fixed division by zero, when range is 0.

parent fc144ada
......@@ -407,6 +407,8 @@ TRACKBAR_DrawOneTic (TRACKBAR_INFO *infoPtr, HDC hdc, LONG ticPos, int flags)
}
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment