projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15ba5c2
)
Fixed bug that was giving the wrong size of wxCustomDataObjects to the receiver.
author
Robin Dunn
<robin@alldunn.com>
Wed, 14 Feb 2001 19:17:30 +0000
(19:17 +0000)
committer
Robin Dunn
<robin@alldunn.com>
Wed, 14 Feb 2001 19:17:30 +0000
(19:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9371
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/msw/ole/dataobj.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/msw/ole/dataobj.cpp
b/src/msw/ole/dataobj.cpp
index c763abed54e5e975e1d068dfcad68d20724b3b0f..b2521b71436a4410dd23f025102a90aeb6fa9c0d 100644
(file)
--- 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);
+ }
}
}