Skip to content
Snippets Groups Projects
Commit 38dcf8ec authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard
Browse files

Prevent crash when nMinRange > nMaxRange.

parent 33c5974f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
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