diff options
author | George Hazan <ghazan@miranda.im> | 2022-09-26 19:16:12 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-09-26 19:16:12 +0300 |
commit | c5dc28ec2272a865ef2f28fd7ab151b55517fedf (patch) | |
tree | d751f3e869c66371b8f1d65480b39c2997ba6e62 /plugins/IEView | |
parent | dc2a4dc50d6cc3e7bd513122756dd39141d7887e (diff) |
more clipboard shit removed
Diffstat (limited to 'plugins/IEView')
-rw-r--r-- | plugins/IEView/src/external_funcs.cpp | 19 |
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 |