gsdx:windows: Fix console output when replaying dumps

This commit is contained in:
Jonathan Li 2017-03-23 01:33:35 +00:00
parent cf4194fef7
commit f1eff358da
1 changed files with 4 additions and 2 deletions

View File

@ -1043,9 +1043,11 @@ public:
SetConsoleWindowInfo(m_console, TRUE, &rect);
*stdout = *_fdopen(_open_osfhandle((long)m_console, _O_TEXT), "w");
freopen("CONOUT$", "w", stdout);
freopen("CONOUT$", "w", stderr);
setvbuf(stdout, NULL, _IONBF, 0);
setvbuf(stdout, nullptr, _IONBF, 0);
setvbuf(stderr, nullptr, _IONBF, 0);
}
}