From: Vadim Zeitlin <vadim@wxwidgets.org> Date: Sat, 8 Sep 2007 11:37:01 +0000 (+0000) Subject: fix file names format in wxFileDataObject::GetDataHere() in Unicode build (replaces... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0766270090c5f6635f036d8310ba9ec6027fc9c2 fix file names format in wxFileDataObject::GetDataHere() in Unicode build (replaces patch 1785191) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/ole/dataobj.cpp b/src/msw/ole/dataobj.cpp index bc81929a07..e02973d999 100644 --- a/src/msw/ole/dataobj.cpp +++ b/src/msw/ole/dataobj.cpp @@ -1139,7 +1139,7 @@ bool wxFileDataObject::GetDataHere(void *WXUNUSED_IN_WINCE(pData)) const #endif // wxUSE_UNICODE_MSLU { len = m_filenames[i].length(); - memcpy(pbuf, m_filenames[i].c_str(), len*sizeOfChar); + memcpy(pbuf, m_filenames[i].wx_str(), len*sizeOfChar); } pbuf += len*sizeOfChar;