summaryrefslogtreecommitdiff
path: root/plugins/AVS/src/mir_thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AVS/src/mir_thread.cpp')
-rw-r--r--plugins/AVS/src/mir_thread.cpp9
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)