summaryrefslogtreecommitdiff
path: root/plugins/IEView
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/IEView')
-rw-r--r--plugins/IEView/src/external_funcs.cpp19
1 files changed, 1 insertions, 18 deletions
diff --git a/plugins/IEView/src/external_funcs.cpp b/plugins/IEView/src/external_funcs.cpp
index db0fae3210..a690d9f0c8 100644
--- a/plugins/IEView/src/external_funcs.cpp
+++ b/plugins/IEView/src/external_funcs.cpp
@@ -206,24 +206,7 @@ namespace External
if (pDispParams == nullptr || pDispParams->cArgs < 1)
return E_INVALIDARG;
- BSTR data = pDispParams->rgvarg[0].bstrVal;
- if (OpenClipboard(nullptr))
- {
- EmptyClipboard();
- size_t size = sizeof(wchar_t)* (mir_wstrlen(data) + 1);
- HGLOBAL hClipboardData = GlobalAlloc(0, size);
- if (hClipboardData)
- {
- wchar_t *pchData = (wchar_t*)GlobalLock(hClipboardData);
- if (pchData)
- {
- memcpy(pchData, (wchar_t*)data, size);
- GlobalUnlock(hClipboardData);
- SetClipboardData(CF_UNICODETEXT, hClipboardData);
- }
- }
- CloseClipboard();
- }
+ Utils_ClipboardCopy(pDispParams->rgvarg[0].bstrVal);
return S_OK;
}
} \ No newline at end of file