diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-07 11:11:17 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-07 11:11:17 +0000 |
commit | 2f4737000403cf82d38ac098f77fd071a3f9c027 (patch) | |
tree | 8a8b93c2efc5bc14cead3e114908e99df27b0eee /protocols/SkypeWeb/src/skype_messages.cpp | |
parent | 22832c36557b1e1b2864b3965ffa0d5a4b9a8c7f (diff) |
SkypeWeb: Crash fix.
git-svn-id: http://svn.miranda-ng.org/main/trunk@12647 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_messages.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_messages.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/skype_messages.cpp b/protocols/SkypeWeb/src/skype_messages.cpp index 53ca7542ba..05b6c7b35d 100644 --- a/protocols/SkypeWeb/src/skype_messages.cpp +++ b/protocols/SkypeWeb/src/skype_messages.cpp @@ -128,7 +128,11 @@ void CSkypeProto::OnMessageSent(const NETLIBHTTPREQUEST *response, void *arg) MCONTACT hContact = param->hContact;
HANDLE hMessage = param->hMessage;
delete param;
-
+ if (response == NULL)
+ {
+ ProtoBroadcastAck(hContact, ACKTYPE_MESSAGE, ACKRESULT_FAILED, hMessage, (LPARAM)"Response = NULL");
+ return;
+ }
if (response->resultCode != 200 && response->resultCode != 201)
{
CMStringA error = "Unknown error";
|