diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2015-04-27 02:31:04 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2015-04-27 02:31:04 +0000 |
commit | 80a0da76eb4d30ffb40374587b3d675052edfc64 (patch) | |
tree | 97359977c4633683ed99b86feaadb206308c1380 /plugins/TabSRMM/src/chat | |
parent | 1f86fa0270660bd28e1bea80527dcbf37af1313b (diff) |
TabSRMM: Wine fix for copy text from send area/message log
git-svn-id: http://svn.miranda-ng.org/main/trunk@13186 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/chat')
-rw-r--r-- | plugins/TabSRMM/src/chat/window.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/plugins/TabSRMM/src/chat/window.cpp b/plugins/TabSRMM/src/chat/window.cpp index 6916828dd8..b65c6b9c76 100644 --- a/plugins/TabSRMM/src/chat/window.cpp +++ b/plugins/TabSRMM/src/chat/window.cpp @@ -2647,16 +2647,7 @@ LABEL_SHOWWINDOW: CallService(MS_UTILS_OPENURL, OUF_TCHAR, (LPARAM)tr.lpstrText); break; case ID_COPY: - if (!OpenClipboard(hwndDlg)) - break; - EmptyClipboard(); - { - HGLOBAL hData = GlobalAlloc(GMEM_MOVEABLE, sizeof(TCHAR) * (mir_tstrlen(tr.lpstrText) + 1)); - mir_tstrcpy((TCHAR*)GlobalLock(hData), tr.lpstrText); - GlobalUnlock(hData); - SetClipboardData(CF_UNICODETEXT, hData); - } - CloseClipboard(); + Utils::CopyToClipBoard(tr.lpstrText, hwndDlg); SetFocus(GetDlgItem(hwndDlg, IDC_CHAT_MESSAGE)); break; } |