Skip to content

Commit 81d257b

Browse files
TheNNXdz333n
authored andcommitted
Revert the previous commit, and add a comment
1 parent b667bfc commit 81d257b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

COREDLL/stdio_wcecl.cpp

+2-6
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ static BOOL WceclTryGetStdHandle(FILE* file, PHANDLE handle)
289289
return TRUE;
290290
}
291291

292+
/* This is only really executed, if the WinCE application has been converted to
293+
Win32 GUI application (WinCE has no distinction between GUI and CUI subsystems) */
292294
static BOOL WceclAllocateStdio()
293295
{
294296
HWND hWndConsole;
@@ -302,12 +304,6 @@ static BOOL WceclAllocateStdio()
302304
hOldStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
303305
hOldStdErr = GetStdHandle(STD_ERROR_HANDLE);
304306

305-
if (hWndConsole == NULL &&
306-
AttachConsole(ATTACH_PARENT_PROCESS))
307-
{
308-
hWndConsole = GetConsoleWindow();
309-
}
310-
311307
if (hWndConsole == NULL)
312308
{
313309
AllocConsole();

0 commit comments

Comments
 (0)