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

Alexandre Julliard julliard at winehq.org
Thu May 16 13:55:06 CDT 2013


Module: wine
Branch: master
Commit: a7d4b2711ca85ef278a5fc8813de45d030550ce2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a7d4b2711ca85ef278a5fc8813de45d030550ce2

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu May 16 12:51:07 2013 +0200

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

---

 dlls/comdlg32/cdlg32.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/comdlg32/cdlg32.c b/dlls/comdlg32/cdlg32.c
index 25b5198..e794f94 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;




More information about the wine-cvs mailing list