comdlg32: Don't bother to free thread local storage at process exit.
This commit is contained in:
parent
b2accc42c0
commit
a7d4b2711c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue