From: mwayne Date: Thu, 3 Jan 2019 10:15:58 +0000 (+0100) Subject: gtk: Fix minor cross compile issue in callbacks X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2075c0522ab11b1a67a65b3bdc4e9ff10d5635a;p=handbrake gtk: Fix minor cross compile issue in callbacks Fix undeclared variable introduced in commit 826d1a7fb862c292195d766f72c51dce120b47bd --- 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)