Merge pull request #574 from daemitus/boot

This commit is contained in:
goaaats 2021-09-17 02:27:51 +02:00 committed by GitHub
commit 2ba6a4407e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -47,6 +47,9 @@ DllExport DWORD WINAPI Initialize(LPVOID lpParam)
// =========================================================================== //
#ifndef NDEBUG
fclose(stdin);
fclose(stdout);
fclose(stderr);
FreeConsole();
#endif

View file

@ -49,6 +49,9 @@ int wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LP
// =========================================================================== //
#ifndef NDEBUG
fclose(stdin);
fclose(stdout);
fclose(stderr);
FreeConsole();
#endif