diff --git a/core/main.cpp b/core/main.cpp index 88764ba..a8b4359 100644 --- a/core/main.cpp +++ b/core/main.cpp @@ -19,6 +19,10 @@ unsigned long __stdcall initial_thread( void* reserved ) { hooks::shutdown( ); std::this_thread::sleep_for( std::chrono::milliseconds( 100 ) ); + fclose(reinterpret_caststdin); + fclose(reinterpret_caststdout); + FreeConsole(); + FreeLibraryAndExitThread( reinterpret_cast< HMODULE >( reserved ), 0 ); return 0ul; }