diff options
Diffstat (limited to 'plugins/Import')
-rw-r--r-- | plugins/Import/src/progress.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/plugins/Import/src/progress.cpp b/plugins/Import/src/progress.cpp index d2037cad65..b602d0a655 100644 --- a/plugins/Import/src/progress.cpp +++ b/plugins/Import/src/progress.cpp @@ -87,20 +87,8 @@ void CProgressPageDlg::OnContextMenu(CCtrlBase*) wszText.Append(L"\r\n");
}
}
- if (wszText.IsEmpty())
- break;
- if (::OpenClipboard(m_hwnd)) {
- size_t i = sizeof(wchar_t) * (wszText.GetLength() + 1);
-
- ::EmptyClipboard();
- HGLOBAL hData = ::GlobalAlloc(GMEM_MOVEABLE | GMEM_SHARE, i);
-
- memcpy((void*)::GlobalLock(hData), wszText, i);
- ::GlobalUnlock(hData);
- ::SetClipboardData(CF_UNICODETEXT, hData);
- ::CloseClipboard();
- }
+ Utils_ClipboardCopy(wszText);
break;
}
|