Commit 38dcf8ec authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Prevent crash when nMinRange > nMaxRange.

parent 33c5974f
......@@ -64,7 +64,7 @@ void TRACKBAR_RecalculateTics (TRACKBAR_INFO *infoPtr)
{
int i,tic,nrTics;
if (infoPtr->uTicFreq)
if (infoPtr->uTicFreq && infoPtr->nRangeMax >= infoPtr->nRangeMin)
nrTics=(infoPtr->nRangeMax - infoPtr->nRangeMin)/infoPtr->uTicFreq;
else {
nrTics=0;
......
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