- Do not skip calling DllMain on non-GCC builds

svn path=/trunk/; revision=53465
This commit is contained in:
Thomas Faber 2011-08-27 09:14:57 +00:00
parent 7f089310e7
commit 3f6b691d08

View file

@ -199,8 +199,8 @@ __DllMainCRTStartup (HANDLE hDllHandle, DWORD dwReason, LPVOID lpreserved)
goto i__leave;
}
}
if (dwReason == DLL_PROCESS_ATTACH)
#if defined(__GNUC__)
if (dwReason == DLL_PROCESS_ATTACH)
__main ();
#endif
retcode = DllMain(hDllHandle,dwReason,lpreserved);