Corrected fix for #11014 in r61506.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-08-13 17:32:24 +00:00
parent a6635eb987
commit 31f6f21ddf

View File

@@ -1264,7 +1264,7 @@ void wxURLDataObject::SetURL(const wxString& url)
// CFSTR_SHELLURL is always supposed to be ANSI...
wxWX2MBbuf urlA = (wxWX2MBbuf)url.mbc_str();
if ( url )
if ( urlA )
{
size_t len = strlen(urlA);
SetData(wxDataFormat(CFSTR_SHELLURL), len+1, (const char*)urlA);