From: Vadim Zeitlin Date: Tue, 2 Nov 1999 16:27:42 +0000 (+0000) Subject: Unicode fixes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/dd10a6469643932f22cd6c8e7e63a79d4b57ef50 Unicode fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/ole/dataobj.cpp b/src/msw/ole/dataobj.cpp index 90e8ab88cb..3b9306f742 100644 --- a/src/msw/ole/dataobj.cpp +++ b/src/msw/ole/dataobj.cpp @@ -963,17 +963,19 @@ size_t wxFileDataObject::GetDataSize() const // a double null at the end // if no filenames in list, size is 0 - if (m_filenames.GetCount() == 0) return 0; + if ( m_filenames.GetCount() == 0 ) + return 0; // inital size of DROPFILES struct + null byte size_t sz = sizeof(DROPFILES) + 1; - int i; - for (i=0; ipFiles = sizeof(DROPFILES); - pDrop->fNC = FALSE; + pDrop->fNC = FALSE; // not non-client coords +#if wxUSE_UNICODE + pDrop->fWide = TRUE; +#else // ANSI pDrop->fWide = FALSE; +#endif // Unicode/Ansi // set start of filenames list (null separated) - char *pbuf = (char*)pDrop + sizeof(DROPFILES); + wxChar *pbuf = (BYTE *)pDrop + sizeof(DROPFILES); - size_t i; - for (i=0; i