summaryrefslogtreecommitdiff
path: root/plugins/HistoryLinkListPlus/src/linklist_dlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/HistoryLinkListPlus/src/linklist_dlg.cpp')
-rw-r--r--plugins/HistoryLinkListPlus/src/linklist_dlg.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/plugins/HistoryLinkListPlus/src/linklist_dlg.cpp b/plugins/HistoryLinkListPlus/src/linklist_dlg.cpp
index d006cad0af..269c3d3f48 100644
--- a/plugins/HistoryLinkListPlus/src/linklist_dlg.cpp
+++ b/plugins/HistoryLinkListPlus/src/linklist_dlg.cpp
@@ -162,18 +162,7 @@ INT_PTR CALLBACK MainDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
break;
case IDM_LINK_COPY:
- if (!OpenClipboard(hDlg))
- break;
-
- EmptyClipboard();
- {
- size_t dataLen = ((mir_wstrlen(link) + 1) * sizeof(wchar_t));
- HGLOBAL hData = GlobalAlloc(GMEM_MOVEABLE, dataLen);
- memcpy((LPTSTR)GlobalLock(hData), link, dataLen);
- GlobalUnlock(hData);
- SetClipboardData(CF_UNICODETEXT, hData);
- }
- CloseClipboard();
+ Utils_ClipboardCopy(link);
break;
case IDM_SHOWMESSAGE: