From: Robin Dunn Date: Sun, 21 Jan 2007 06:58:05 +0000 (+0000) Subject: Return an empty string from wxDataFormat::GetId if there was an error X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5712281c5d48fb42050fa6182283e30c57062cff Return an empty string from wxDataFormat::GetId if there was an error git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/ole/dataobj.cpp b/src/msw/ole/dataobj.cpp index d4ec164a93..4cfcee5e9e 100644 --- a/src/msw/ole/dataobj.cpp +++ b/src/msw/ole/dataobj.cpp @@ -159,6 +159,7 @@ wxString wxDataFormat::GetId() const if ( !len ) { wxLogError(_("The clipboard format '%d' doesn't exist."), m_format); + return wxEmptyString; } return s;