]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed bug that was giving the wrong size of wxCustomDataObjects to the receiver.
authorRobin Dunn <robin@alldunn.com>
Wed, 14 Feb 2001 19:17:30 +0000 (19:17 +0000)
committerRobin 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

index c763abed54e5e975e1d068dfcad68d20724b3b0f..b2521b71436a4410dd23f025102a90aeb6fa9c0d 100644 (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);
+                            }
                         }
                 }