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/ProxySwitch | |
parent | dc2a4dc50d6cc3e7bd513122756dd39141d7887e (diff) |
more clipboard shit removed
Diffstat (limited to 'plugins/ProxySwitch')
-rw-r--r-- | plugins/ProxySwitch/src/main.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/plugins/ProxySwitch/src/main.cpp b/plugins/ProxySwitch/src/main.cpp index d8ced5f0fe..470bb4ed80 100644 --- a/plugins/ProxySwitch/src/main.cpp +++ b/plugins/ProxySwitch/src/main.cpp @@ -104,15 +104,8 @@ static INT_PTR ProxyDisable(WPARAM, LPARAM) static INT_PTR CopyIP2Clipboard(WPARAM, LPARAM, LPARAM idx) { mir_cslock lck(csNIF_List); - if (g_arNIF[idx].IPcount == 0) - return 0; - - if (!OpenClipboard(NULL)) - return 0; - - EmptyClipboard(); - SetClipboardData(CF_UNICODETEXT, (HANDLE)g_arNIF[idx].IPstr); - CloseClipboard(); + if (g_arNIF[idx].IPcount != 0) + Utils_ClipboardCopy(_A2T(g_arNIF[idx].IPstr)); return 0; } |