Disable windows console attach.

This commit is contained in:
Armin Novak 2020-02-12 15:45:19 +01:00
parent e304428a5f
commit 2822585db4

View File

@ -60,17 +60,26 @@
static BOOL wf_create_console(void)
{
#if defined(WITH_WIN_CONSOLE)
if (!AttachConsole(ATTACH_PARENT_PROCESS))
return FALSE;
freopen("CONOUT$", "w", stdout);
freopen("CONOUT$", "w", stderr);
clearerr(stdout);
clearerr(stderr);
fflush(stdout);
fflush(stderr);
freopen("CONIN$", "r", stdin);
clearerr(stdin);
WLog_INFO(TAG, "Debug console created.");
return TRUE;
#else
return FALSE;
#endif
}
static BOOL wf_end_paint(rdpContext* context)