summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-03 19:41:53 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-03 19:41:53 +0000
commit2aa97b252de70c56a6c9b38157acb3dcded7d8f1 (patch)
treeecd1a788b53462b43c9abf6c95a4389f5c18f07b /plugins/TabSRMM
parent4d9eeb59a33a68825033d3be404dc6593240a301 (diff)
fix for copying urls from log
git-svn-id: http://svn.miranda-ng.org/main/trunk@7483 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/msgdialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp
index 3d61c08919..ff28e11217 100644
--- a/plugins/TabSRMM/src/msgdialog.cpp
+++ b/plugins/TabSRMM/src/msgdialog.cpp
@@ -2222,9 +2222,10 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP
break;
EmptyClipboard();
hData = GlobalAlloc(GMEM_MOVEABLE, sizeof(TCHAR)*(lstrlen(tr.lpstrText)+1));
- lstrcpy((TCHAR*)GlobalLock(hData), tr.lpstrText);
+ TCHAR *buf = (TCHAR*)GlobalLock(hData);
+ lstrcpy(buf, tr.lpstrText);
GlobalUnlock(hData);
- SetClipboardData(CF_TEXT, hData);
+ SetClipboardData(CF_UNICODETEXT, hData);
CloseClipboard();
break;
}