From 84493d0039c7779abe925f4d69e54b137a1de431 Mon Sep 17 00:00:00 2001 From: "xie.kunming" Date: Fri, 25 Jan 2019 16:45:52 +0800 Subject: [PATCH] If uElapse is less than USER_TIMER_MINIMUM (0x0000000A), the timeout is set to USER_TIMER_MINIMUM. --- client/Windows/wf_floatbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/Windows/wf_floatbar.c b/client/Windows/wf_floatbar.c index 1c0be8a..ed3a2b7 100644 --- a/client/Windows/wf_floatbar.c +++ b/client/Windows/wf_floatbar.c @@ -128,7 +128,7 @@ static BOOL floatbar_animation(wfFloatBar* const floatbar, const BOOL show) floatbar->animating = timer; - if (SetTimer(floatbar->hwnd, timer, 10, NULL) == NULL) + if (SetTimer(floatbar->hwnd, timer, USER_TIMER_MINIMUM, NULL) == NULL) { DWORD err = GetLastError(); WLog_ERR(TAG, "SetTimer failed with %08"PRIx32, err); -- 2.7.4