msxml3: Don't unload external libraries on process shutdown.
This commit is contained in:
parent
6eca89efa7
commit
2710f05cef
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user