X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/abb88ef36b622958aee316eae76c79b145b831dd..8f08b2509bc94079a0a0203ecee862a23f938721:/src/msw/ole/dataobj.cpp diff --git a/src/msw/ole/dataobj.cpp b/src/msw/ole/dataobj.cpp index 21c81b5bb4..3003abdd38 100644 --- a/src/msw/ole/dataobj.cpp +++ b/src/msw/ole/dataobj.cpp @@ -688,7 +688,7 @@ size_t wxDataObject::GetBufferOffset(const wxDataFormat& format ) const void *wxDataObject::GetSizeFromBuffer(const void *buffer, size_t *size, - const wxDataFormat& format) + const wxDataFormat& WXUNUSED(format)) { // hack: the third parameter is declared non-const in Wine's headers so // cast away the const @@ -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 } // ----------------------------------------------------------------------------