win32: there is no CONERR$, only CONOUT$

This commit is contained in:
Marc-André Lureau 2012-05-16 17:33:43 +02:00
parent 3bb6f5ec80
commit dca7397f16
2 changed files with 2 additions and 2 deletions

View File

@ -233,7 +233,7 @@ main(int argc, char **argv)
if (AttachConsole(ATTACH_PARENT_PROCESS) != 0) {
freopen("CONIN$", "r", stdin);
freopen("CONOUT$", "w", stdout);
freopen("CONERR$", "w", stderr);
freopen("CONOUT$", "w", stderr);
dup2(fileno(stdin), STDIN_FILENO);
dup2(fileno(stdout), STDOUT_FILENO);
dup2(fileno(stderr), STDERR_FILENO);

View File

@ -30,7 +30,7 @@
* if (AttachConsole(ATTACH_PARENT_PROCESS) != 0) {
* freopen("CONIN$", "r", stdin);
* freopen("CONOUT$", "w", stdout);
* freopen("CONERR$", "w", stderr);
* freopen("CONOUT$", "w", stderr);
* dup2(fileno(stdin), STDIN_FILENO);
* dup2(fileno(stdout), STDOUT_FILENO);
* dup2(fileno(stderr), STDERR_FILENO);