diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-03-06 03:45:15 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-03-06 03:45:15 +0000 |
commit | 2e2d5d88ac239bdbb2999a4f927cf6d819e4ae84 (patch) | |
tree | ed9bcd9901cd2c589e2864581681c859a4268d1c /protocols/MRA/src | |
parent | 381ae22157acdbdc1d8b2760b8f58c5d1d0aba37 (diff) |
More SMS fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@8425 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA/src')
-rw-r--r-- | protocols/MRA/src/MraSendCommand.cpp | 1 | ||||
-rw-r--r-- | protocols/MRA/src/Mra_proto.cpp | 3 | ||||
-rw-r--r-- | protocols/MRA/src/version.h | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/protocols/MRA/src/MraSendCommand.cpp b/protocols/MRA/src/MraSendCommand.cpp index 91e55a8401..8d5d5d47de 100644 --- a/protocols/MRA/src/MraSendCommand.cpp +++ b/protocols/MRA/src/MraSendCommand.cpp @@ -448,6 +448,7 @@ DWORD CMraProto::MraSMSW(MCONTACT hContact, const CMStringA &lpszPhone, const CM buf.SetLPS(szPhoneLocal);
buf.SetLPSW(lpwszMessage);
+ /* Save phone number for ack notify after send. */
LPBYTE lpbData = (LPBYTE)mir_calloc(lpszPhone.GetLength() + sizeof(size_t));
if (NULL == lpbData)
return (0);
diff --git a/protocols/MRA/src/Mra_proto.cpp b/protocols/MRA/src/Mra_proto.cpp index 5ce49e47bc..3a0c9bb6c0 100644 --- a/protocols/MRA/src/Mra_proto.cpp +++ b/protocols/MRA/src/Mra_proto.cpp @@ -256,6 +256,7 @@ DWORD CMraProto::MraNetworkDispatcher() ProtoBroadcastAck(hContact, dwAckType, ACKRESULT_SUCCESS, (HANDLE)dwCMDNum, 0);
break;
case ICQACKTYPE_SMS:
+ ProtoBroadcastAck(NULL, dwAckType, ACKRESULT_FAILED, (HANDLE)dwCMDNum, 0);
mir_free(lpbData);
break;
}
@@ -1782,7 +1783,7 @@ DWORD CMraProto::MraRecvCommand_Message(DWORD dwTime, DWORD dwFlags, CMStringA & // found
(*lpbBufferCurPos) = 0;
- lpbBufferCurPos++;
+ lpbBufferCurPos ++;
}
ProtoChainRecv(hContact, PSR_CONTACTS, 0, (LPARAM)&pre);
}
diff --git a/protocols/MRA/src/version.h b/protocols/MRA/src/version.h index f0bf119c1c..949589e0a1 100644 --- a/protocols/MRA/src/version.h +++ b/protocols/MRA/src/version.h @@ -8,7 +8,7 @@ #define __PLUGIN_NAME "MRA"
#define __FILENAME "MRA.dll"
#define __DESCRIPTION "Miranda Mail.ru Agent protocol plugin."
-#define __AUTHOR "Ivan Rozhuk"
+#define __AUTHOR "Rozhuk Ivan"
#define __AUTHOREMAIL "Rozhuk_I@mail.ru"
#define __AUTHORWEB "http://miranda-ng.org/p/MRA/"
-#define __COPYRIGHT "© 2005-2009 Rozhuk Ivan"
+#define __COPYRIGHT "© 2005-2014 Rozhuk Ivan"
|