We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff631f9 commit 6e74b81Copy full SHA for 6e74b81
src/os_win32.c
@@ -1357,9 +1357,10 @@ WaitForChar(long msec)
1357
1358
if (msec > 0)
1359
{
1360
- /* If the specified wait time has passed, return. */
+ /* If the specified wait time has passed, return. Beware that
1361
+ * GetTickCount() may wrap around (overflow). */
1362
dwNow = GetTickCount();
- if (dwNow >= dwEndTime)
1363
+ if ((int)(dwNow - dwEndTime) >= 0)
1364
break;
1365
}
1366
if (msec != 0)
src/version.c
@@ -727,6 +727,8 @@ static char *(features[]) =
727
728
static int included_patches[] =
729
{ /* Add new patch number below this line */
730
+/**/
731
+ 22,
732
/**/
733
21,
734
0 commit comments