X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6b978929d5f00f2938a36e142fda8821d7f42be7..c9b6238d6794d82634fb146dc894876ea2882b97:/src/msw/ole/dataobj.cpp?ds=inline diff --git a/src/msw/ole/dataobj.cpp b/src/msw/ole/dataobj.cpp index a909b3e85e..ded99292e6 100644 --- a/src/msw/ole/dataobj.cpp +++ b/src/msw/ole/dataobj.cpp @@ -55,10 +55,6 @@ #include "wx/msw/dib.h" -#ifdef __WXWINE__ -#define LPDROPFILES DROPFILES* -#endif - #ifndef CFSTR_SHELLURL #define CFSTR_SHELLURL _T("UniformResourceLocator") #endif @@ -95,6 +91,8 @@ private: CLIPFORMAT *m_formats; // formats we can provide data in ULONG m_nCount, // number of formats we support m_nCurrent; // current enum position + + DECLARE_NO_COPY_CLASS(wxIEnumFORMATETC) }; // ---------------------------------------------------------------------------- @@ -129,6 +127,8 @@ private: wxDataObject *m_pDataObject; // pointer to C++ class we belong to bool m_mustDelete; + + DECLARE_NO_COPY_CLASS(wxIDataObject) }; // ============================================================================ @@ -474,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 @@ -1098,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) );