1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-22 09:12:22 -05:00

Another supposed fix for tray restoration

This commit is contained in:
Berke Viktor 2012-07-15 14:54:44 +02:00
parent 74ad736626
commit f78acf5eda

View File

@ -924,7 +924,7 @@ enum_windows_impl (HWND current_window, LPARAM lParam)
}
GetWindowText (current_window, window_name, 8); /* name length + 1 */
if (stricmp (window_name, "hexchat") == 0)
if (strcmp (window_name, "HexChat") == 0)
{
/* use a separate if block, this way we don't have to call GetWindowModuleFileName() for each hit */
ZeroMemory (&module_path, sizeof (module_path));
@ -972,7 +972,7 @@ main (int argc, char *argv[])
{
DWORD error;
mutex = CreateMutex (NULL, TRUE, "Local\xchat");
mutex = CreateMutex (NULL, TRUE, "Local\hexchat");
error = GetLastError ();
if (error == ERROR_ALREADY_EXISTS || mutex == NULL)