From f0c5ebdc0d881e5478f166bab335265460409ec9 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 14 Feb 2001 19:17:30 +0000 Subject: [PATCH] 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 --- src/msw/ole/dataobj.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); + } } } -- 2.45.2