diff options
Diffstat (limited to 'player')
-rw-r--r-- | player/main-fn-win.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/player/main-fn-win.c b/player/main-fn-win.c index 125b4116f8..9e46e4af5f 100644 --- a/player/main-fn-win.c +++ b/player/main-fn-win.c @@ -1,6 +1,7 @@ #include "config.h" #include "core.h" #include "osdep/io.h" +#include "osdep/terminal.h" int wmain(int argc, wchar_t *argv[]); @@ -9,6 +10,10 @@ int _dowildcard = 0; int wmain(int argc, wchar_t *argv[]) { + // If started from the console wrapper (see osdep/win32-console-wrapper.c), + // attach to the console and set up the standard IO handles + terminal_try_attach(); + char **argv_u8 = talloc_zero_array(NULL, char*, argc + 1); for (int i = 0; i < argc; i++) argv_u8[i] = mp_to_utf8(argv_u8, argv[i]); |