diff --git a/dlls/dwrite/main.c b/dlls/dwrite/main.c index da023d96134..d253c42c5b3 100644 --- a/dlls/dwrite/main.c +++ b/dlls/dwrite/main.c @@ -44,6 +44,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, LPVOID reserved) DisableThreadLibraryCalls( hinstDLL ); break; case DLL_PROCESS_DETACH: + if (reserved) break; release_system_fontcollection(); break; }