From 375aabf22b6fdee608d4e83113caf12c1964f454 Mon Sep 17 00:00:00 2001 From: Frank-74 Date: Sun, 5 Feb 2017 01:04:24 +0000 Subject: [PATCH] Remove pjutil::DynLibCallDllMain() --- Source/Common/Util.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Source/Common/Util.cpp b/Source/Common/Util.cpp index 57932659a..27b98c2e8 100644 --- a/Source/Common/Util.cpp +++ b/Source/Common/Util.cpp @@ -49,20 +49,6 @@ void pjutil::DynLibClose(pjutil::DynLibHandle LibHandle) } } -#ifdef _WIN32 -static void EmptyThreadFunction(void) -{ -} - -void pjutil::DynLibCallDllMain(void) -{ - //jabo had a bug so I call CreateThread so the dllmain in the plugins will get called again with thread attached - DWORD ThreadID; - HANDLE hthread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)EmptyThreadFunction, NULL, 0, &ThreadID); - CloseHandle(hthread); -} -#endif - void pjutil::Sleep(uint32_t timeout) { #ifdef _WIN32