Alexandre Julliard : pdh: Don' t bother to delete critical sections at process exit.

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


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

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

pdh: Don't bother to delete critical sections at process exit.

---

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

diff --git a/dlls/pdh/pdh_main.c b/dlls/pdh/pdh_main.c
index f1a34e7..25bd858 100644
--- a/dlls/pdh/pdh_main.c
+++ b/dlls/pdh/pdh_main.c
@@ -93,6 +93,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
         DisableThreadLibraryCalls(hinstDLL);
         break;
     case DLL_PROCESS_DETACH:
+        if (lpvReserved) break;
         DeleteCriticalSection(&pdh_handle_cs);
         break;
     }




More information about the wine-cvs mailing list