comdlg32: Don't bother to free thread local storage at process exit.

This commit is contained in:
Alexandre Julliard 2013-05-16 12:51:07 +02:00
parent b2accc42c0
commit a7d4b2711c
1 changed files with 1 additions and 0 deletions

View File

@ -112,6 +112,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD Reason, LPVOID Reserved)
break; break;
case DLL_PROCESS_DETACH: case DLL_PROCESS_DETACH:
if (Reserved) break;
if (COMDLG32_TlsIndex != TLS_OUT_OF_INDEXES) TlsFree(COMDLG32_TlsIndex); if (COMDLG32_TlsIndex != TLS_OUT_OF_INDEXES) TlsFree(COMDLG32_TlsIndex);
if(SHFOLDER_hInstance) FreeLibrary(SHFOLDER_hInstance); if(SHFOLDER_hInstance) FreeLibrary(SHFOLDER_hInstance);
break; break;