#define WIN32_LEAN_AND_MEAN 1
#include <Windows.h>
-
//Internal
#include <MUtils/Terminal.h>
#include <MUtils/Global.h>
g_terminal_attached = true;
}
}
-
+
if(g_terminal_attached)
{
//-------------------------------------------------------------------
*stderr = *hfStdErr;
g_filebufStdErr.reset(new std::filebuf(hfStdErr));
std::cerr.rdbuf(g_filebufStdErr.data());
+ std::cerr.rdbuf(new std::filebuf(hfStdErr));
}
const HWND hwndConsole = GetConsoleWindow();