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