Commit 35ddb514 authored by Berke Viktor's avatar Berke Viktor
Browse files

Fix restoration via taskbar icon

parent c745e4ea
......@@ -923,7 +923,7 @@ enum_windows_impl (HWND current_window, LPARAM lParam)
return TRUE;
}
GetWindowText (current_window, window_name, 10);
GetWindowText (current_window, window_name, 8); /* name length + 1 */
if (stricmp (window_name, "hexchat") == 0)
{
/* use a separate if block, this way we don't have to call GetWindowModuleFileName() for each hit */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment