diff options
author | George Hazan <george.hazan@gmail.com> | 2013-05-10 19:13:36 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-05-10 19:13:36 +0000 |
commit | 326fdfc6425dd89b32e94c111d68a0384b8765a3 (patch) | |
tree | d99a73701f1be7c47e9040cb96d46cc600a0027d /protocols/Skype/src/skype_proto.cpp | |
parent | 97fe0e28cae9ab3d9131dc13103027cb41aa21c8 (diff) |
hangup fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@4626 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_proto.cpp')
-rw-r--r-- | protocols/Skype/src/skype_proto.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/protocols/Skype/src/skype_proto.cpp b/protocols/Skype/src/skype_proto.cpp index ec39286302..eec50e2e38 100644 --- a/protocols/Skype/src/skype_proto.cpp +++ b/protocols/Skype/src/skype_proto.cpp @@ -285,26 +285,20 @@ int __cdecl CSkypeProto::RecvMsg(HANDLE hContact, PROTORECVEVENT* pre) this->Log(L"Incoming message");
::db_unset(hContact, "CList", "Hidden");
- SEBinary *guid = (SEBinary*)pre->lParam;
+ ReadMessageParam *param = (ReadMessageParam*)pre->lParam;
char *message = (char *)pre->szMessage;
size_t msgLen = ::strlen(message) + 1;
- message = (char *)::mir_realloc(message, msgLen + guid->size());
- ::memcpy((char *)&message[msgLen], guid->data(), guid->size());
-
- CMessage::Ref skype_message;
- g_skype->GetMessageByGuid(*guid, skype_message);
-
- CMessage::TYPE messageType;
- skype_message->GetPropType(messageType);
+ message = (char *)::mir_realloc(message, msgLen + param->guid.size());
+ ::memcpy((char *)&message[msgLen], param->guid.data(), param->guid.size());
return (INT_PTR)this->AddDBEvent(
hContact,
- messageType == CMessage::POSTED_TEXT ? EVENTTYPE_MESSAGE : SKYPE_DB_EVENT_TYPE_EMOTE,
+ param->msgType == CMessage::POSTED_TEXT ? EVENTTYPE_MESSAGE : SKYPE_DB_EVENT_TYPE_EMOTE,
pre->timestamp,
DBEF_UTF | ((pre->flags & PREF_CREATEREAD) ? DBEF_READ : 0),
- DWORD(msgLen + guid->size()),
+ DWORD(msgLen + param->guid.size()),
(PBYTE)message);
}
|