summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_files.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb/src/skype_files.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_files.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/SkypeWeb/src/skype_files.cpp b/protocols/SkypeWeb/src/skype_files.cpp
index 721186434a..24f279a600 100644
--- a/protocols/SkypeWeb/src/skype_files.cpp
+++ b/protocols/SkypeWeb/src/skype_files.cpp
@@ -232,13 +232,13 @@ void CSkypeProto::OnASMObjectUploaded(MHttpResponse *response, AsyncHttpRequest
tinyxml2::XMLPrinter printer(0, true);
doc.Print(&printer);
- SendMessageParam *param = new SendMessageParam();
- param->hContact = fup->hContact;
- Utils_GetRandom(&param->hMessage, sizeof(param->hMessage));
- param->hMessage &= ~0x80000000;
+ uint32_t hMessage;
+ Utils_GetRandom(&hMessage, sizeof(hMessage));
+ hMessage &= ~0x80000000;
auto *pReq = new SendFileRequest(fup, getId(fup->hContact), printer.CStr());
- pReq->pUserInfo = param;
+ pReq->hContact = fup->hContact;
+ pReq->pUserInfo = (HANDLE)hMessage;
PushRequest(pReq);
ProtoBroadcastAck(fup->hContact, ACKTYPE_FILE, ACKRESULT_SUCCESS, (HANDLE)fup);