summary refs log tree commit diff stats
path: root/src/common/hexchat.c
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-11-11 15:50:31 +0100
committerBerke Viktor <bviktor@hexchat.org>2012-11-11 15:50:31 +0100
commit7911aeb51e66e38d4c1721e2392188c1a58f53d6 (patch)
treef02f16aaeae9d59c64609d8bb063265583568482 /src/common/hexchat.c
parenta04fdc50b67de8385240e0f9f5f594370f960d88 (diff)
Disable one instance code coz it's really buggy
Diffstat (limited to 'src/common/hexchat.c')
-rw-r--r--src/common/hexchat.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/common/hexchat.c b/src/common/hexchat.c
index de6402ee..1aa5fe54 100644
--- a/src/common/hexchat.c
+++ b/src/common/hexchat.c
@@ -909,7 +909,7 @@ hexchat_execv (char * const argv[])
 #endif
 }
 
-#ifdef WIN32
+#if 0 /* def WIN32 */
 static void
 xchat_restore_window (HWND hexchat_window)
 {
@@ -957,7 +957,7 @@ main (int argc, char *argv[])
 
 #ifdef WIN32
 	char hexchat_lang[13];	/* LC_ALL= plus 5 chars of hex_gui_lang and trailing \0 */
-	HANDLE mutex;
+	/* HANDLE mutex; */
 #endif
 
 	srand (time (0));	/* CL: do this only once! */
@@ -1159,6 +1159,7 @@ main (int argc, char *argv[])
 
 	putenv (hexchat_lang);
 
+#if 0
 	if (prefs.hex_gui_single && !portable_mode ())
 	{
 		DWORD error;
@@ -1184,6 +1185,7 @@ main (int argc, char *argv[])
 		}
 	}
 #endif
+#endif
 
 #ifdef SOCKS
 	SOCKSinit (argv[0]);
@@ -1223,12 +1225,14 @@ main (int argc, char *argv[])
 #ifdef WIN32
 	WSACleanup ();
 
+#if 0
 	if (prefs.hex_gui_single && !portable_mode ())
 	{
 		ReleaseMutex (mutex);
 		CloseHandle (mutex);
 	}
 #endif
+#endif
 
 	return 0;
 }