From f78acf5eda59b9c392c067e59817478a9baddbfa Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Sun, 15 Jul 2012 14:54:44 +0200 Subject: [PATCH] Another supposed fix for tray restoration --- src/common/xchat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/xchat.c b/src/common/xchat.c index 214cc623..776bc78c 100644 --- a/src/common/xchat.c +++ b/src/common/xchat.c @@ -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)