diff --git a/COREDLL/stdio_wcecl.cpp b/COREDLL/stdio_wcecl.cpp index 7684abb..db87513 100644 --- a/COREDLL/stdio_wcecl.cpp +++ b/COREDLL/stdio_wcecl.cpp @@ -289,6 +289,8 @@ static BOOL WceclTryGetStdHandle(FILE* file, PHANDLE handle) return TRUE; } +/* This is only really executed, if the WinCE application has been converted to + Win32 GUI application (WinCE has no distinction between GUI and CUI subsystems) */ static BOOL WceclAllocateStdio() { HWND hWndConsole; @@ -302,12 +304,6 @@ static BOOL WceclAllocateStdio() hOldStdOut = GetStdHandle(STD_OUTPUT_HANDLE); hOldStdErr = GetStdHandle(STD_ERROR_HANDLE); - if (hWndConsole == NULL && - AttachConsole(ATTACH_PARENT_PROCESS)) - { - hWndConsole = GetConsoleWindow(); - } - if (hWndConsole == NULL) { AllocConsole();