Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
chrilith committed Feb 25, 2016
1 parent b5f2471 commit 7c35dd5
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions Lua Module/EntryPoint.cpp
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
#include <Windows.h>

BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hModule); //Optimization since Lua thread threads weirdly...
break;
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {
switch (ul_reason_for_call) {
case DLL_PROCESS_ATTACH:
// Optimization since Lua thread threads weirdly...
DisableThreadLibraryCalls(hModule);
break;
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}

return TRUE;
}

0 comments on commit 7c35dd5

Please sign in to comment.