diff options
-rw-r--r-- | gtk/src/callbacks.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 97d08039b..1ca6b66db 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -4457,12 +4457,12 @@ ghb_log_cb(GIOChannel *source, GIOCondition cond, gpointer data) scroll_tok = g_idle_add((GSourceFunc)activity_scroll_to_bottom, ud); } - if (ud->activity_log != NULL) - { #if defined(_WIN32) - gsize one = 1; - utf8_text[length-1] = '\r'; + gsize one = 1; + utf8_text[length-1] = '\r'; #endif + if (ud->activity_log != NULL) + { g_io_channel_write_chars (ud->activity_log, utf8_text, length, &outlength, NULL); #if defined(_WIN32) |