summaryrefslogtreecommitdiff
path: root/protocols/MRA/src/Mra_functions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/MRA/src/Mra_functions.cpp')
-rw-r--r--protocols/MRA/src/Mra_functions.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/MRA/src/Mra_functions.cpp b/protocols/MRA/src/Mra_functions.cpp
index 26b6ddd8ae..06e1890847 100644
--- a/protocols/MRA/src/Mra_functions.cpp
+++ b/protocols/MRA/src/Mra_functions.cpp
@@ -115,7 +115,8 @@ DWORD MraAddrListGetFromBuff(const CMStringA &szAddresses, MRA_ADDR_LIST *pmalAd
while (TRUE) {
LPSTR lpszEndItem = strchr(lpszCurrentItem, ';');
- if (lpszEndItem == NULL) lpszEndItem = buf + szAddresses.GetLength();
+ if (lpszEndItem == NULL)
+ lpszEndItem = buf + szAddresses.GetLength();
if (!lpszEndItem)
break;
@@ -414,7 +415,8 @@ DWORD CMraProto::GetContactBasicInfoW(MCONTACT hContact, DWORD *pdwID, DWORD *pd
if (pdwContactFlag)
*pdwContactFlag = GetContactFlags(hContact);
if (szEmail)
- mraGetStringA(hContact, "e-mail", *szEmail);
+ if (!mraGetStringA(hContact, "e-mail", *szEmail))
+ return 0;
if (wszNick)
DB_GetStringW(hContact, "CList", "MyHandle", *wszNick);