changeset 22409:3370f295a1e0

Fix a regression in presenting the existing instance of Pidgin on Windows when the executable is launched a subsequent time. Fixes #5041.
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 03 Mar 2008 16:35:15 +0000
parents 791c9545846b
children d3c8fd63e296
files pidgin/win32/winpidgin.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/win32/winpidgin.c	Mon Mar 03 09:03:47 2008 +0000
+++ b/pidgin/win32/winpidgin.c	Mon Mar 03 16:35:15 2008 +0000
@@ -456,7 +456,7 @@
 
 				printf("An instance of Pidgin is already running.\n");
 
-				if((msg_win = FindWindowEx(HWND_MESSAGE, NULL, TEXT("WinpidginMsgWinCls"), NULL)))
+				if((msg_win = FindWindowEx(NULL, NULL, TEXT("WinpidginMsgWinCls"), NULL)))
 					if(SendMessage(msg_win, PIDGIN_WM_FOCUS_REQUEST, (WPARAM) NULL, (LPARAM) NULL))
 						return FALSE;