From 1e737f420221294c6b35bb3ef10a4e1fdf982a9f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 27 Aug 2013 19:50:58 +0000 Subject: fix for displaying account names in Chat's popus git-svn-id: http://svn.miranda-ng.org/main/trunk@5866 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Scriver/src/chat/manager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/Scriver/src/chat/manager.cpp') diff --git a/plugins/Scriver/src/chat/manager.cpp b/plugins/Scriver/src/chat/manager.cpp index 009b9c266b..7d3191c733 100644 --- a/plugins/Scriver/src/chat/manager.cpp +++ b/plugins/Scriver/src/chat/manager.cpp @@ -1104,11 +1104,10 @@ USERINFO * UM_SortUser(USERINFO** ppUserList, const TCHAR* pszUID) USERINFO* UM_AddUser(STATUSINFO* pStatusList, USERINFO** ppUserList, const TCHAR* pszUID, const TCHAR* pszNick, WORD wStatus) { - USERINFO * pTemp = *ppUserList, *pLast = NULL; - - if (!pStatusList || !ppUserList || !ppUserList) + if (!pStatusList || !ppUserList) return NULL; + USERINFO * pTemp = *ppUserList, *pLast = NULL; while(pTemp && UM_CompareItem(pTemp, pszNick, wStatus) <= 0) { pLast = pTemp; -- cgit v1.2.3