close streams before freeconsole, dialog doesnt hang

This commit is contained in:
Raymond 2021-09-16 08:59:46 -04:00
parent 6bd95f0e06
commit 68526e3cea

View file

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