mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2026-01-06 21:35:18 +00:00
win32: there is no CONERR$, only CONOUT$
This commit is contained in:
parent
3bb6f5ec80
commit
dca7397f16
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user