From 30d7d31369c776f5e5fe7c5e6b878273fe8b1a7c Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 17 May 2013 12:17:41 +0200 Subject: [PATCH] powrprof: Don't bother to close handles at process exit. --- dlls/powrprof/powrprof.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/powrprof/powrprof.c b/dlls/powrprof/powrprof.c index a5897280fc9..7327fdfe41f 100644 --- a/dlls/powrprof/powrprof.c +++ b/dlls/powrprof/powrprof.c @@ -341,6 +341,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) break; } case DLL_PROCESS_DETACH: + if (lpvReserved) break; CloseHandle(PPRegSemaphore); break; }