diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2016-03-29 18:34:54 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2016-03-29 18:34:54 +0000 |
commit | 7460f623d00f6119979688e5c4d788a8cdc0a478 (patch) | |
tree | 695d83cacb417d2e2675632c4ace252e1d21c9cd /protocols/MRA/src/Mra_proto.cpp | |
parent | 91fa723b31fd3cd885d7f3dec8bc9d7e01d3bd41 (diff) |
MRA: - minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@16562 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA/src/Mra_proto.cpp')
-rw-r--r-- | protocols/MRA/src/Mra_proto.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/MRA/src/Mra_proto.cpp b/protocols/MRA/src/Mra_proto.cpp index caeb8819ae..83c0d89f49 100644 --- a/protocols/MRA/src/Mra_proto.cpp +++ b/protocols/MRA/src/Mra_proto.cpp @@ -13,7 +13,8 @@ DWORD CMraProto::StartConnect() return 0;
CMStringA szEmail;
- mraGetStringA(NULL, "e-mail", szEmail);
+ if (!mraGetStringA(NULL, "e-mail", szEmail))
+ return 0;
CMStringA szPass;
if (szEmail.GetLength() <= 5)
@@ -1647,7 +1648,8 @@ DWORD CMraProto::MraRecvCommand_Message(DWORD dwTime, DWORD dwFlags, CMStringA & InternetTimeGetCurrentTime(&itTime);
CMStringA szTime = InternetTimeGetString(&itTime);
CMStringA szPhone = CopyNumber(plpsFrom), szEmail;
- mraGetStringA(NULL, "e-mail", szEmail);
+ if (!mraGetStringA(NULL, "e-mail", szEmail))
+ return 0;
CMStringW wszMessageXMLEncoded = EncodeXML(wszMessage);
ptrA lpszMessageUTF(mir_utf8encodeW(wszMessageXMLEncoded));
|