summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorBerke Viktor <berkeviktor@aol.com>2011-11-25 10:10:11 +0100
committerBerke Viktor <berkeviktor@aol.com>2011-11-25 10:10:11 +0100
commit0c3c36fdf3663bc428254254a790c1bc7e3500fc (patch)
tree13235362f3025c1779d21994d2cb15d46ade84fb /src/common
parentfb1a986332a7ff6db6f2a70df447c5d484af7cdc (diff)
disable one instance option in portable mode
Diffstat (limited to 'src/common')
-rw-r--r--src/common/xchat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/xchat.c b/src/common/xchat.c
index 8dca6de8..c0847a32 100644
--- a/src/common/xchat.c
+++ b/src/common/xchat.c
@@ -49,6 +49,7 @@
 #include "text.h"
 #include "url.h"
 #include "xchatc.h"
+#include "wdkutil.h"
 
 #ifdef USE_OPENSSL
 #include <openssl/ssl.h>		  /* SSL_() */
@@ -927,7 +928,7 @@ main (int argc, char *argv[])
 	load_config ();
 
 #ifdef WIN32
-	if (prefs.gui_one_instance)
+	if (prefs.gui_one_instance && !portable_mode ())
 	{
 		DWORD error;
 
@@ -967,7 +968,7 @@ main (int argc, char *argv[])
 #ifdef WIN32
 	WSACleanup ();
 
-	if (prefs.gui_one_instance)
+	if (prefs.gui_one_instance && !portable_mode ())
 	{
 		CloseHandle (mutex);
 	}