diff options
author | George Hazan <ghazan@miranda.im> | 2018-09-20 22:12:50 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-09-20 22:12:50 +0300 |
commit | 8d5867276a766c5447e4d4489f4649d7fb04ab72 (patch) | |
tree | f6a47b1c846346dea8ee252e21a956efe98d2e76 /protocols/IcqOscarJ | |
parent | 199b5e776f261c3818817648976819f1ed0c8056 (diff) |
fix for the proper return type of PROTO<>::RecvMsg
Diffstat (limited to 'protocols/IcqOscarJ')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_proto.cpp | 2 | ||||
-rw-r--r-- | protocols/IcqOscarJ/src/icq_proto.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/protocols/IcqOscarJ/src/icq_proto.cpp b/protocols/IcqOscarJ/src/icq_proto.cpp index fef9525a51..da2972c014 100644 --- a/protocols/IcqOscarJ/src/icq_proto.cpp +++ b/protocols/IcqOscarJ/src/icq_proto.cpp @@ -868,7 +868,7 @@ int CIcqProto::RecvContacts(MCONTACT hContact, PROTORECVEVENT* pre) ////////////////////////////////////////////////////////////////////////////////////////
// RecvMsg
-int CIcqProto::RecvMsg(MCONTACT hContact, PROTORECVEVENT* pre)
+MEVENT CIcqProto::RecvMsg(MCONTACT hContact, PROTORECVEVENT* pre)
{
size_t cbBlob = mir_strlen(pre->szMessage) + 1;
ICQAddRecvEvent(hContact, EVENTTYPE_MESSAGE, pre, cbBlob, (PBYTE)pre->szMessage, DBEF_UTF);
diff --git a/protocols/IcqOscarJ/src/icq_proto.h b/protocols/IcqOscarJ/src/icq_proto.h index 704e7d402c..f50c445126 100644 --- a/protocols/IcqOscarJ/src/icq_proto.h +++ b/protocols/IcqOscarJ/src/icq_proto.h @@ -77,7 +77,7 @@ struct CIcqProto : public PROTO<CIcqProto> HWND CreateExtendedSearchUI(HWND owner) override;
int RecvContacts(MCONTACT hContact, PROTORECVEVENT*) override;
- int RecvMsg(MCONTACT hContact, PROTORECVEVENT*) override;
+ MEVENT RecvMsg(MCONTACT hContact, PROTORECVEVENT*) override;
int SendContacts(MCONTACT hContact, int flags, int nContacts, MCONTACT *hContactsList) override;
HANDLE SendFile(MCONTACT hContact, const wchar_t *szDescription, wchar_t **ppszFiles) override;
|