diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-06 22:12:20 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-06 22:12:20 +0000 |
commit | 9de0202a0b12838d505825413c3cbcce5edabc11 (patch) | |
tree | 6f1f707f3e17c19e5cd08745e76c5299f9ba827b /plugins/AVS/src/mir_thread.cpp | |
parent | 4e3088029101cc1e9bbc46984910a47bc0530e8f (diff) |
cleanup of the unnecessary UnhookEvent() calls
git-svn-id: http://svn.miranda-ng.org/main/trunk@3909 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AVS/src/mir_thread.cpp')
-rw-r--r-- | plugins/AVS/src/mir_thread.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
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)
|