diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-21 19:55:10 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-21 19:55:10 +0000 |
commit | 0b64d645f714fdf20da8618aa7c37f25e3b5505c (patch) | |
tree | 97e8230d5d7c6bb316b6c9a44adc26581fe9c474 /plugins/SendScreenshotPlus/src/CSendDropbox.cpp | |
parent | 06ca08ab518ba90cc82db8cc9ac27b5a25340510 (diff) |
SendSS: fix potential crash
git-svn-id: http://svn.miranda-ng.org/main/trunk@15419 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus/src/CSendDropbox.cpp')
-rw-r--r-- | plugins/SendScreenshotPlus/src/CSendDropbox.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/SendScreenshotPlus/src/CSendDropbox.cpp b/plugins/SendScreenshotPlus/src/CSendDropbox.cpp index 400deea5fb..0b381b8964 100644 --- a/plugins/SendScreenshotPlus/src/CSendDropbox.cpp +++ b/plugins/SendScreenshotPlus/src/CSendDropbox.cpp @@ -66,6 +66,8 @@ void CSendDropbox::SendThread() //m_bSilent = true; m_hDropHook = HookEventObj(ME_DROPBOX_SENT, OnDropSend, this); WaitForSingleObject(m_hEvent, INFINITE); + if (m_URL) + svcSendMsgExit(m_URL); } int CSendDropbox::OnDropSend(void *obj, WPARAM, LPARAM lParam) @@ -76,7 +78,6 @@ int CSendDropbox::OnDropSend(void *obj, WPARAM, LPARAM lParam) { UnhookEvent(self->m_hDropHook); self->m_URL = mir_strdup(info->data[0]); - self->svcSendMsgExit(self->m_URL); SetEvent(self->m_hEvent); } return 0; |