Fix integer overflow bug causing infinite event polling
This commit is contained in:
parent
2cb9c0273f
commit
8830cb2a76
@ -93,6 +93,10 @@ void terml_windows::process_events()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (num_events_read >= num_events_available)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
num_events_available -= num_events_read;
|
num_events_available -= num_events_read;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user