mirror of
https://github.com/hexchat/hexchat.git
synced 2024-11-10 13:12:34 +01:00
Another supposed fix for tray restoration
This commit is contained in:
parent
74ad736626
commit
f78acf5eda
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user