mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 787313 - Add back code that was erroneously reverted. r=ochameau
This commit is contained in:
parent
95bb4d5e15
commit
3f97e4a635
@ -405,9 +405,11 @@ nsNativeAppSupportWin::CheckConsole() {
|
||||
if (_fileno(stdout) == -1 ||
|
||||
_get_osfhandle(fileno(stdout)) == -1)
|
||||
freopen("CONOUT$", "w", stdout);
|
||||
// Merge stderr into CONOUT$ since there isn't any `CONERR$`.
|
||||
// http://msdn.microsoft.com/en-us/library/windows/desktop/ms683231%28v=vs.85%29.aspx
|
||||
if (_fileno(stderr) == -1 ||
|
||||
_get_osfhandle(fileno(stderr)) == -1)
|
||||
freopen("CONERR$", "w", stderr);
|
||||
freopen("CONOUT$", "w", stderr);
|
||||
if (_fileno(stdin) == -1 || _get_osfhandle(fileno(stdin)) == -1)
|
||||
freopen("CONIN$", "r", stdin);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user