mirror of
https://github.com/digarok/gsplus.git
synced 2024-06-08 10:45:07 +00:00
wasn't setting stderr fileno...
This commit is contained in:
parent
3ef3173c36
commit
91c24bbf8b
|
@ -193,7 +193,6 @@ void win_init_console(void) {
|
|||
|
||||
//SetConsoleTextAttribute(h, BACKGROUND_BLUE | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);
|
||||
|
||||
|
||||
fd = _open_osfhandle((intptr_t)h, _O_TEXT);
|
||||
#if DUPE
|
||||
if (fd >= 0 && fd != 1) {
|
||||
|
@ -222,10 +221,11 @@ void win_init_console(void) {
|
|||
close(fd);
|
||||
}
|
||||
#else
|
||||
stdout->_file = fd;
|
||||
stderr->_file = fd;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
dbg = fopen("debug.txt", "a+");
|
||||
h = GetStdHandle(STD_INPUT_HANDLE);
|
||||
|
|
Loading…
Reference in New Issue
Block a user