summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-07-13 20:56:26 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-07-13 20:56:26 +0200
commita0c0e90f0cb67f34389bcee9bf04e4312d36ac12 (patch)
treeda468c21885181def18730238ff4e3950c0e360f /src/common
parent9b139fb49f4dee3acdfb77a756d51b7a9f84e6ca (diff)
Now really fix window restoration via shortcut
Diffstat (limited to 'src/common')
-rw-r--r--src/common/xchat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/xchat.c b/src/common/xchat.c
index 11a65c17..1b9fd5a7 100644
--- a/src/common/xchat.c
+++ b/src/common/xchat.c
@@ -914,7 +914,7 @@ xchat_restore_window (HWND xchat_window)
 BOOL CALLBACK
 enum_windows_impl (HWND current_window, LPARAM lParam)
 {
-	TCHAR window_name[10];
+	TCHAR window_name[8];
 	TCHAR module_path[1024];
 	ZeroMemory (&window_name, sizeof (window_name));
 
@@ -1023,6 +1023,7 @@ main (int argc, char *argv[])
 
 	if (prefs.gui_one_instance && !portable_mode ())
 	{
+		ReleaseMutex (mutex);
 		CloseHandle (mutex);
 	}
 #endif