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:
parent
9e958a6a3c
commit
63eef3e7e6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user