From: Fabian Keil Date: Sun, 27 May 2012 15:38:53 +0000 (+0000) Subject: Finish the previous commit, the added comment wasn't the final version X-Git-Tag: v_3_0_20~333 X-Git-Url: http://www.privoxy.org/gitweb/templates.html?a=commitdiff_plain;h=7863f89ed3f4cd637359b03db31f37239c5a98f7;p=privoxy.git Finish the previous commit, the added comment wasn't the final version --- 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".