From c5dc28ec2272a865ef2f28fd7ab151b55517fedf Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 26 Sep 2022 19:16:12 +0300 Subject: more clipboard shit removed --- plugins/ProxySwitch/src/main.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'plugins/ProxySwitch/src') 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; } -- cgit v1.2.3