Alexandre Julliard : powrprof: Don' t bother to close handles at process exit.
Alexandre Julliard
julliard at winehq.org
Fri May 17 14:24:33 CDT 2013
Module: wine
Branch: master
Commit: 30d7d31369c776f5e5fe7c5e6b878273fe8b1a7c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=30d7d31369c776f5e5fe7c5e6b878273fe8b1a7c
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri May 17 12:17:41 2013 +0200
powrprof: Don't bother to close handles at process exit.
---
dlls/powrprof/powrprof.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/powrprof/powrprof.c b/dlls/powrprof/powrprof.c
index a589728..7327fdf 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;
}
More information about the wine-cvs
mailing list