X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cb626df225e27f5ad3ea0e36a683c4a5a4bc30dc..dd9f8b6bb6935360a8271dc3e8749fb026b601a8:/src/msw/ole/dataobj.cpp?ds=sidebyside diff --git a/src/msw/ole/dataobj.cpp b/src/msw/ole/dataobj.cpp index f57954158a..3003abdd38 100644 --- a/src/msw/ole/dataobj.cpp +++ b/src/msw/ole/dataobj.cpp @@ -1249,11 +1249,15 @@ void wxURLDataObject::SetURL(const wxString& url) if ( urlMB ) { const size_t len = strlen(urlMB) + 1; // size with trailing NUL +#if !wxUSE_UNICODE SetData(wxDF_TEXT, len, urlMB); +#endif SetData(wxDataFormat(CFSTR_SHELLURL), len, urlMB); } +#if wxUSE_UNICODE SetData(wxDF_UNICODETEXT, url.length() + 1, url.wc_str()); +#endif } // ----------------------------------------------------------------------------