From 7863f89ed3f4cd637359b03db31f37239c5a98f7 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sun, 27 May 2012 15:38:53 +0000 Subject: [PATCH] Finish the previous commit, the added comment wasn't the final version --- w32log.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/w32log.c b/w32log.c index 7372136f..5b4389f8 100644 --- a/w32log.c +++ b/w32log.c @@ -550,6 +550,14 @@ int LogPutStringNoMatch(const char *pszText, int style) *********************************************************************/ void LogShowActivity(void) { + int i; + + /* Try to figure out if SetIdleIcon() is thread-safe */ + for (i = 0; i < 1000; i++) + { + SetIdleIcon(); + } + /* Start some activity timers */ if (g_bShowActivityAnimation) { @@ -949,7 +957,7 @@ void OnLogCommand(int nCommand) log_error(LOG_LEVEL_INFO, "Now toggled %s", global_toggle_state ? "ON" : "OFF"); /* - * Overload TIMER_ANIMSTOP_ID to set the idle icon through the + * Leverage TIMER_ANIMSTOP_ID to set the idle icon through the * "application queue". According to MSDN, 10 milliseconds are * the lowest value possible and seem to be close enough to * "instantly". -- 2.39.2