msxml3: Don't unload external libraries on process shutdown.

This commit is contained in:
Alexandre Julliard 2013-04-30 17:25:29 +02:00
parent 6eca89efa7
commit 2710f05cef

View File

@ -209,7 +209,7 @@ static void init_libxslt(void)
#endif #endif
} }
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID reserved)
{ {
MSXML_hInstance = hInstDLL; MSXML_hInstance = hInstDLL;
@ -235,12 +235,12 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
DisableThreadLibraryCalls(hInstDLL); DisableThreadLibraryCalls(hInstDLL);
break; break;
case DLL_PROCESS_DETACH: case DLL_PROCESS_DETACH:
if (reserved) break;
#ifdef SONAME_LIBXSLT #ifdef SONAME_LIBXSLT
if (libxslt_handle) if (libxslt_handle)
{ {
pxsltCleanupGlobals(); pxsltCleanupGlobals();
wine_dlclose(libxslt_handle, NULL, 0); wine_dlclose(libxslt_handle, NULL, 0);
libxslt_handle = NULL;
} }
#endif #endif
#ifdef HAVE_LIBXML2 #ifdef HAVE_LIBXML2