Mercurial > pidgin
changeset 20988:9375e1a9a196
Print debugging output when the win32 launcher gives up because Pidgin is already running.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 18 Oct 2007 21:00:06 +0000 |
parents | 0cbfc19e4909 |
children | 2097b1664fa3 |
files | pidgin/win32/winpidgin.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/win32/winpidgin.c Thu Oct 18 20:20:57 2007 +0000 +++ b/pidgin/win32/winpidgin.c Thu Oct 18 21:00:06 2007 +0000 @@ -452,6 +452,8 @@ if (GetLastError() == ERROR_ALREADY_EXISTS) { HWND msg_win; + printf("An instance of Pidgin is already running.\n"); + if((msg_win = FindWindow(TEXT("WinpidginMsgWinCls"), NULL))) if(SendMessage(msg_win, PIDGIN_WM_FOCUS_REQUEST, (WPARAM) NULL, (LPARAM) NULL)) return FALSE;