From: Robin Dunn Date: Wed, 14 Feb 2001 19:17:30 +0000 (+0000) Subject: Fixed bug that was giving the wrong size of wxCustomDataObjects to the receiver. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f0c5ebdc0d881e5478f166bab335265460409ec9 Fixed bug that was giving the wrong size of wxCustomDataObjects to the receiver. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/ole/dataobj.cpp b/src/msw/ole/dataobj.cpp index c763abed54..b2521b7143 100644 --- a/src/msw/ole/dataobj.cpp +++ b/src/msw/ole/dataobj.cpp @@ -506,6 +506,10 @@ STDMETHODIMP wxIDataObject::SetData(FORMATETC *pformatetc, size_t *p = (size_t *)pBuf; size = *p++; pBuf = p; + if (! format.IsStandard() ) { + // see GetData for coresponding increment + size -= sizeof(size_t); + } } }