summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/msgdialog.cpp2
-rw-r--r--plugins/TabSRMM/src/msgdlgother.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp
index 8af50246c9..28c77dd810 100644
--- a/plugins/TabSRMM/src/msgdialog.cpp
+++ b/plugins/TabSRMM/src/msgdialog.cpp
@@ -1392,7 +1392,7 @@ int CMsgDialog::OnFilter(MSGFILTER *pFilter)
CallService(MS_TABMSG_SETUSERPREFS, m_hContact, 0);
return _dlgReturn(m_hwnd, 1);
case TABSRMM_HK_SENDFILE:
- CallService(MS_FILE_SENDFILE, m_hContact, 0);
+ File::Send(m_hContact);
return _dlgReturn(m_hwnd, 1);
case TABSRMM_HK_QUOTEMSG:
SendMessage(m_hwnd, WM_COMMAND, IDC_QUOTE, 0);
diff --git a/plugins/TabSRMM/src/msgdlgother.cpp b/plugins/TabSRMM/src/msgdlgother.cpp
index bfda8bb78f..0aada80e85 100644
--- a/plugins/TabSRMM/src/msgdlgother.cpp
+++ b/plugins/TabSRMM/src/msgdlgother.cpp
@@ -1979,8 +1979,8 @@ void CMsgDialog::SendHBitmapAsFile(HBITMAP hbmp) const
vTempFilenames.insert(mir_wstrdup(filename));
- wchar_t *ppFiles[2] = { filename, nullptr };
- CallService(MS_FILE_SENDSPECIFICFILEST, m_cache->getActiveContact(), (LPARAM)&ppFiles);
+ wchar_t *ppFiles[2] = { filename, 0 };
+ File::Send(m_cache->getActiveContact(), ppFiles);
}
// remove all temporary files created by the "send clipboard as file" feature.