From 04113a3460d7122442c7f96dd72944eab2ecee31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Jab=C5=82o=C5=84ski?= Date: Sun, 14 Apr 2024 16:36:33 +0200 Subject: [PATCH] Revert the previous commit, and add a comment --- COREDLL/stdio_wcecl.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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();