Skip to content
Snippets Groups Projects
Commit 2cf92565 authored by Michael Günnewig's avatar Michael Günnewig Committed by Alexandre Julliard
Browse files

Fixed division by zero, when range is 0.

parent fc144ada
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment