From a7d4b2711ca85ef278a5fc8813de45d030550ce2 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 16 May 2013 12:51:07 +0200 Subject: [PATCH] comdlg32: Don't bother to free thread local storage at process exit. --- dlls/comdlg32/cdlg32.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/comdlg32/cdlg32.c b/dlls/comdlg32/cdlg32.c index 25b519848ab..e794f94d8b1 100644 --- a/dlls/comdlg32/cdlg32.c +++ b/dlls/comdlg32/cdlg32.c @@ -112,6 +112,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD Reason, LPVOID Reserved) break; case DLL_PROCESS_DETACH: + if (Reserved) break; if (COMDLG32_TlsIndex != TLS_OUT_OF_INDEXES) TlsFree(COMDLG32_TlsIndex); if(SHFOLDER_hInstance) FreeLibrary(SHFOLDER_hInstance); break;