From 9de0202a0b12838d505825413c3cbcce5edabc11 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 6 Mar 2013 22:12:20 +0000 Subject: cleanup of the unnecessary UnhookEvent() calls git-svn-id: http://svn.miranda-ng.org/main/trunk@3909 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AVS/src/mir_thread.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'plugins/AVS/src/mir_thread.cpp') diff --git a/plugins/AVS/src/mir_thread.cpp b/plugins/AVS/src/mir_thread.cpp index d12a0c9731..f1eb547b8f 100644 --- a/plugins/AVS/src/mir_thread.cpp +++ b/plugins/AVS/src/mir_thread.cpp @@ -17,32 +17,25 @@ not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - #include "commonheaders.h" - BOOL g_shutDown = FALSE; static HANDLE hShutdownEvent = NULL; -static HANDLE hOkToExit = NULL; - static int OkToExitProc(WPARAM wParam, LPARAM lParam) { g_shutDown = TRUE; SetEvent(hShutdownEvent); CloseHandle(hShutdownEvent); - UnhookEvent(hOkToExit); return 0; } - void init_mir_thread() { hShutdownEvent = CreateEvent(NULL, TRUE, FALSE, NULL); - hOkToExit = HookEvent(ME_SYSTEM_OKTOEXIT, OkToExitProc); + HookEvent(ME_SYSTEM_OKTOEXIT, OkToExitProc); } - void mir_sleep(int time) { if (!g_shutDown) -- cgit v1.2.3