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/Console | |
parent | dc2a4dc50d6cc3e7bd513122756dd39141d7887e (diff) |
more clipboard shit removed
Diffstat (limited to 'plugins/Console')
-rw-r--r-- | plugins/Console/src/Console.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/plugins/Console/src/Console.cpp b/plugins/Console/src/Console.cpp index a3584ffb85..51696191c2 100644 --- a/plugins/Console/src/Console.cpp +++ b/plugins/Console/src/Console.cpp @@ -498,17 +498,9 @@ static INT_PTR CALLBACK LogDlgProc(HWND hwndDlg, UINT message, WPARAM wParam, LP *dst = 0;
}
- if (dst - buf > 0 && OpenClipboard(hwndDlg)) {
- EmptyClipboard();
- HGLOBAL hClipboardData = GlobalAlloc(GMEM_DDESHARE, (dst - buf + 1) * sizeof(wchar_t));
- if (hClipboardData) {
- wchar_t *pchData = (wchar_t *)GlobalLock(hClipboardData);
- mir_wstrcpy(pchData, buf);
- GlobalUnlock(hClipboardData);
- SetClipboardData(CF_UNICODETEXT, hClipboardData);
- }
- CloseClipboard();
- }
+ if (dst - buf > 0)
+ Utils_ClipboardCopy(buf);
+
free(buf);
break;
}
|