applied patch #2835731 - disable name mangling for the DllMain function so that the Math plugin could be properly initialized

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5998 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
pabs3 2009-08-19 09:18:28 +00:00
parent 7900063f76
commit 81fea574de

View file

@ -1552,7 +1552,7 @@ void CleanAll(int init)
}
}
BOOL WINAPI DllMain(HINSTANCE hInst, ULONG ul_reason_for_call, LPVOID lpReserved)
extern "C" BOOL WINAPI DllMain(HINSTANCE hInst, ULONG ul_reason_for_call, LPVOID lpReserved)
{
g_hInstance = hInst;
CleanAll(ul_reason_for_call == DLL_PROCESS_ATTACH);