From: Jinoh Kang jinoh.kang.kr@gmail.com
Returning early is never correct; returning late is.
Fixes: f768d6b31bebc35fbaf751d0cd57c8bd302a8d60 --- libs/fluidsynth/glib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/fluidsynth/glib.c b/libs/fluidsynth/glib.c index e7add4652b2..3953392b86f 100644 --- a/libs/fluidsynth/glib.c +++ b/libs/fluidsynth/glib.c @@ -50,7 +50,7 @@ double g_get_monotonic_time(void)
void g_usleep( unsigned int micros ) { - Sleep( micros / 1000 ); + Sleep( (micros + 999) / 1000 ); }
static DWORD CALLBACK g_thread_wrapper( void *args )