Don't define DllMain() in a static build. Fixes #433.

This commit is contained in:
Pietro Gagliardi 2019-04-21 13:57:19 -04:00
parent 29c51b6348
commit b89a18f3dd
1 changed files with 4 additions and 0 deletions

View File

@ -111,9 +111,13 @@ void uiUninit(void)
{ {
} }
#ifndef uiStatic
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{ {
if (fdwReason == DLL_PROCESS_ATTACH) if (fdwReason == DLL_PROCESS_ATTACH)
hInstance = hinstDLL; hInstance = hinstDLL;
return TRUE; return TRUE;
} }
#endif