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
This commit is contained in:
Robin Dunn 2001-02-14 19:17:30 +00:00
parent 15ba5c2731
commit f0c5ebdc0d

View File

@ -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);
}
}
}