Upported a number of patches to HEAD.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -202,8 +202,9 @@ bool wxFileDataObject::GetDataHere(void *buf) const
|
||||
|
||||
for (size_t i = 0; i < m_filenames.GetCount(); i++)
|
||||
{
|
||||
filenames += wxT("file:");
|
||||
filenames += m_filenames[i];
|
||||
filenames += (wxChar) 0;
|
||||
filenames += wxT("\r\n");
|
||||
}
|
||||
|
||||
memcpy( buf, filenames.mbc_str(), filenames.Len() + 1 );
|
||||
@@ -217,8 +218,9 @@ size_t wxFileDataObject::GetDataSize() const
|
||||
|
||||
for (size_t i = 0; i < m_filenames.GetCount(); i++)
|
||||
{
|
||||
// This is junk in UTF-8
|
||||
res += m_filenames[i].Len();
|
||||
res += 1;
|
||||
res += 5 + 2; // "file:" (5) + "\r\n" (2)
|
||||
}
|
||||
|
||||
return res + 1;
|
||||
|
Reference in New Issue
Block a user