Resetting debug changes
This commit is contained in:
parent
f807a8f1e7
commit
69769f9319
1 changed files with 3 additions and 6 deletions
|
@ -90,12 +90,9 @@ int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t* cmd, int) {
|
||||||
if (env->GetVar("OS", &os) && os != "cygwin") {
|
if (env->GetVar("OS", &os) && os != "cygwin") {
|
||||||
AttachConsole(ATTACH_PARENT_PROCESS);
|
AttachConsole(ATTACH_PARENT_PROCESS);
|
||||||
|
|
||||||
FILE* dontcare, *out, *err;
|
FILE* dontcare;
|
||||||
out = fopen("out.txt", "w");
|
freopen_s(&dontcare, "CON", "w", stdout);
|
||||||
err = fopen("err.txt", "w");
|
freopen_s(&dontcare, "CON", "w", stderr);
|
||||||
freopen_s(&out, "CON", "w", stdout);
|
|
||||||
freopen_s(&err, "CON", "w", stderr);
|
|
||||||
freopen_s(&dontcare, "CON", "r", stdin);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert argv to to UTF8
|
// Convert argv to to UTF8
|
||||||
|
|
Loading…
Reference in a new issue