From 4641ff7a3a0d6a124c22a5c044bffd04073720fc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 3 Jul 2012 18:15:52 +0000 Subject: shit dropped out git-svn-id: http://svn.miranda-ng.org/main/trunk@738 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/jabber_userinfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/JabberG/jabber_userinfo.cpp') diff --git a/protocols/JabberG/jabber_userinfo.cpp b/protocols/JabberG/jabber_userinfo.cpp index f79202ca73..b24c649e1d 100644 --- a/protocols/JabberG/jabber_userinfo.cpp +++ b/protocols/JabberG/jabber_userinfo.cpp @@ -388,8 +388,8 @@ static void sttFillUserInfo( CJabberProto* ppro, HWND hwndTree, JABBER_LIST_ITEM item->itemResource.statusMessage ? item->itemResource.statusMessage : TranslateT( "" ), sttInfoLineId(0, INFOLINE_LOGOFF_MSG)); // activity - if ( item->lastSeenResource ) - lstrcpyn( buf, item->lastSeenResource->resourceName, SIZEOF( buf )); + if (( item->lastSeenResource >= 0 ) && ( item->lastSeenResource < item->resourceCount )) + lstrcpyn( buf, item->resource[item->lastSeenResource].resourceName, SIZEOF( buf )); else lstrcpyn( buf, TranslateT( "" ), SIZEOF( buf )); -- cgit v1.2.3