fixed wxFileDataObject in Unicode build

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-05-09 18:52:43 +00:00
parent 7fa4dc1cfc
commit bf5d9fa4ea
2 changed files with 3 additions and 1 deletions

View File

@@ -136,6 +136,8 @@ wxMSW:
- wxTaskBarIcon must be explicitly destroyed now, otherwise the application - wxTaskBarIcon must be explicitly destroyed now, otherwise the application
won't exit even though there are no top level windows won't exit even though there are no top level windows
- wxFileName::GetModificationTime() works with opened files too now - 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: wxMotif:

View File

@@ -1082,7 +1082,7 @@ bool wxFileDataObject::GetDataHere(void *pData) const
{ {
// copy filename to pbuf and add null terminator // copy filename to pbuf and add null terminator
size_t len = m_filenames[i].Len(); size_t len = m_filenames[i].Len();
memcpy(pbuf, m_filenames[i], len); memcpy(pbuf, m_filenames[i], len*sizeof(wxChar));
pbuf += len; pbuf += len;
*pbuf++ = wxT('\0'); *pbuf++ = wxT('\0');
} }