]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed wxFileDataObject in Unicode build
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 9 May 2004 18:52:43 +0000 (18:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 9 May 2004 18:52:43 +0000 (18:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
src/msw/ole/dataobj.cpp

index 3a4d1933426981f318a4ecdf56c03fa05d604390..0e615bdc583184bde332941421f008af89e0a661 100644 (file)
@@ -136,6 +136,8 @@ wxMSW:
 - wxTaskBarIcon must be explicitly destroyed now, otherwise the application
   won't exit even though there are no top level windows
 - wxFileName::GetModificationTime() works with opened files too now
+- wxDC::GetClippingBox() now works even for clipping regions created by Windows
+- fixed wxFileDataObject in Unicode build (Alex D)
 
 wxMotif:
 
index 9c70b15cb0d3e4967ecf75afd203b2e52a758625..14da1ff70ce7c3a3cf071a4cb1b6d51c4594b0f0 100644 (file)
@@ -1082,7 +1082,7 @@ bool wxFileDataObject::GetDataHere(void *pData) const
     {
         // copy filename to pbuf and add null terminator
         size_t len = m_filenames[i].Len();
-        memcpy(pbuf, m_filenames[i], len);
+        memcpy(pbuf, m_filenames[i], len*sizeof(wxChar));
         pbuf += len;
         *pbuf++ = wxT('\0');
     }