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/Discord | |
parent | 199b5e776f261c3818817648976819f1ed0c8056 (diff) |
fix for the proper return type of PROTO<>::RecvMsg
Diffstat (limited to 'protocols/Discord')
-rw-r--r-- | protocols/Discord/src/proto.cpp | 2 | ||||
-rw-r--r-- | protocols/Discord/src/proto.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Discord/src/proto.cpp b/protocols/Discord/src/proto.cpp index ec9faa0690..61ed2237bf 100644 --- a/protocols/Discord/src/proto.cpp +++ b/protocols/Discord/src/proto.cpp @@ -353,7 +353,7 @@ MCONTACT CDiscordProto::AddToList(int flags, PROTOSEARCHRESULT *psr) //////////////////////////////////////////////////////////////////////////////////////// // RecvMsg -int CDiscordProto::RecvMsg(MCONTACT hContact, PROTORECVEVENT *evt) +MEVENT CDiscordProto::RecvMsg(MCONTACT hContact, PROTORECVEVENT *evt) { T2Utf szResUtf((const wchar_t*)evt->lParam); evt->pCustomData = (char*)szResUtf; diff --git a/protocols/Discord/src/proto.h b/protocols/Discord/src/proto.h index 502f52fb2f..878b054e6f 100644 --- a/protocols/Discord/src/proto.h +++ b/protocols/Discord/src/proto.h @@ -273,7 +273,7 @@ public: int AuthDeny(MEVENT hDbEvent, const wchar_t* szReason) override; int AuthRequest(MCONTACT hContact, const wchar_t*) override; - int RecvMsg(MCONTACT hContact, PROTORECVEVENT *evt) override; + MEVENT RecvMsg(MCONTACT hContact, PROTORECVEVENT *evt) override; int SendMsg(MCONTACT hContact, int flags, const char* pszSrc) override; HANDLE SendFile(MCONTACT hContact, const wchar_t *szDescription, wchar_t **ppszFiles) override; |