diff options
author | Berke Viktor <berkeviktor@aol.com> | 2011-11-25 10:10:11 +0100 |
---|---|---|
committer | Berke Viktor <berkeviktor@aol.com> | 2011-11-25 10:10:11 +0100 |
commit | 0c3c36fdf3663bc428254254a790c1bc7e3500fc (patch) | |
tree | 13235362f3025c1779d21994d2cb15d46ade84fb /src/common | |
parent | fb1a986332a7ff6db6f2a70df447c5d484af7cdc (diff) |
disable one instance option in portable mode
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/xchat.c | 5 |
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); } |