git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32737
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxClipboard::Clear()
{
#if wxUSE_OLE_CLIPBOARD
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 // wxUSE_OLE_CLIPBOARD
}
bool wxClipboard::Flush()
{
#if 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);