corrected wxLogErrors() in Clear() and Flush()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-03-11 00:02:27 +00:00
parent c9caa6bbe9
commit 110a0fea88

View File

@ -549,19 +549,21 @@ wxClipboard::~wxClipboard()
void wxClipboard::Clear()
{
#if wxUSE_OLE_CLIPBOARD
if ( FAILED(OleSetClipboard(NULL)) )
HRESULT hr = OleSetClipboard(NULL);
if ( FAILED(hr) )
{
wxLogLastError(wxT("OleSetClipboard(NULL)"));
wxLogApiError(wxT("OleSetClipboard(NULL)"), hr);
}
#endif
#endif // wxUSE_OLE_CLIPBOARD
}
bool wxClipboard::Flush()
{
#if wxUSE_OLE_CLIPBOARD
if ( FAILED(OleFlushClipboard()) )
HRESULT hr = OleFlushClipboard();
if ( FAILED(hr) )
{
wxLogLastError(wxT("OleFlushClipboard"));
wxLogApiError(wxT("OleFlushClipboard"), hr);
return false;
}