Fixed Console handling within DLL

This commit is contained in:
itm4n
2021-04-16 20:03:52 +02:00
parent e52848ed4b
commit f57ef1a095
+2
View File
@@ -59,6 +59,8 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserv
case DLL_PROCESS_DETACH:
if (g_bDebug)
LogToConsole(L"DllMain (process detach)\n");
if (g_hConsoleOutput)
FreeConsole();
break;
}
return TRUE;