Win32: Redirect stderr to the current console. This fixes a problem introduced on Win32 by replacing printf(...) with fprintf(stderr, ...)

This commit is contained in:
Eugene Sukhodolin 2013-08-17 23:49:51 +07:00
parent 9e958a6a3c
commit 63eef3e7e6

View File

@ -65,6 +65,8 @@ int wf_create_console(void)
return 1;
freopen("CONOUT$", "w", stdout);
freopen("CONOUT$", "w", stderr);
fprintf(stderr, "Debug console created.\n");
return 0;