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:
parent
15ba5c2731
commit
f0c5ebdc0d
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user