X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b601c243f14c7e8f3f1c784d962fed81d118e1a..78e376b56fe2716067010e355cbc5b49cab82002:/src/msw/ole/dataobj.cpp diff --git a/src/msw/ole/dataobj.cpp b/src/msw/ole/dataobj.cpp index 5d9e131157..7e2d2132a8 100644 --- a/src/msw/ole/dataobj.cpp +++ b/src/msw/ole/dataobj.cpp @@ -55,6 +55,10 @@ #include "wx/msw/dib.h" +#ifdef __WXWINE__ +#define LPDROPFILES DROPFILES* +#endif + #ifndef CFSTR_SHELLURL #define CFSTR_SHELLURL _T("UniformResourceLocator") #endif @@ -470,7 +474,7 @@ STDMETHODIMP wxIDataObject::SetData(FORMATETC *pformatetc, || ( defined(__MWERKS__) && defined(__WXMSW__) ) size = std::wcslen((const wchar_t *)pBuf) * sizeof(wchar_t); #else - size = ::wcslen((const wchar_t *)pBuf) * sizeof(wchar_t); + size = wxWcslen((const wchar_t *)pBuf) * sizeof(wchar_t); #endif break; #endif @@ -1063,7 +1067,6 @@ bool wxFileDataObject::GetDataHere(void *pData) const // wxURLDataObject // ---------------------------------------------------------------------------- - class CFSTR_SHELLURLDataObject : public wxCustomDataObject { public: @@ -1095,7 +1098,7 @@ protected: // CFSTR_SHELLURL is _always_ ANSI! wxCharBuffer char_buffer( GetDataSize() ); wxCustomDataObject::GetDataHere( (void*)char_buffer.data() ); - wxString unicode_buffer( char_buffer ); + wxString unicode_buffer( char_buffer, wxConvLibc ); memcpy( buffer, unicode_buffer.c_str(), ( unicode_buffer.length() + 1 ) * sizeof(wxChar) );