From acc77b4f36c122498918edf197b9713f2981a648 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 15 Nov 2009 03:07:52 +0000 Subject: [PATCH] Release the mutex if we go dedicated. git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3453 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/sys_win.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/engine/client/sys_win.c b/engine/client/sys_win.c index 1a928d8d9..b31acf605 100644 --- a/engine/client/sys_win.c +++ b/engine/client/sys_win.c @@ -1033,6 +1033,14 @@ qboolean Sys_InitTerminal (void) if (!AllocConsole()) return false; +#ifndef SERVERONLY + if (qwclsemaphore) + { + CloseHandle(qwclsemaphore); + qwclsemaphore = NULL; + } +#endif + //if we still have the splash screen, kill it if (hwnd_dialog) DestroyWindow(hwnd_dialog);