code_junkie

LoaderLock error on program termination

Nov 13th, 2011
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. extern "C"
  2. BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID /*lpReserved*/)
  3. {
  4. if (dwReason == DLL_PROCESS_ATTACH)
  5. {
  6. _Module.Init(ObjectMap, hInstance);
  7. DisableThreadLibraryCalls(hInstance);
  8. }
  9. else if (dwReason == DLL_PROCESS_DETACH)
  10. _Module.Term();
  11. return TRUE; // ok
  12. }
Add Comment
Please, Sign In to add comment