Skip to content

Commit

Permalink
Revert the previous commit, and add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNNX committed Apr 14, 2024
1 parent 0ab9fb6 commit 04113a3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions COREDLL/stdio_wcecl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
Expand Down

0 comments on commit 04113a3

Please sign in to comment.