X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6aa89a22b8e47000c98bff05c6f545f331f1c353..222702b112dcc7bebe018d6f4d66fe469fefd02c:/src/os2/dataobj.cpp diff --git a/src/os2/dataobj.cpp b/src/os2/dataobj.cpp index bfb2187205..e0941f6268 100644 --- a/src/os2/dataobj.cpp +++ b/src/os2/dataobj.cpp @@ -41,22 +41,18 @@ // functions // ---------------------------------------------------------------------------- -#ifdef __WXDEBUG__ - static const wxChar *GetTymedName(DWORD tymed); -#endif // Debug - // ---------------------------------------------------------------------------- // wxDataFormat // ---------------------------------------------------------------------------- wxString wxDataFormat::GetId() const { - char zBuf[256]; + wxChar zBuf[256]; wxString sRet; ::WinQueryAtomName( ::WinQuerySystemAtomTable() ,m_uFormat - ,zBuf + ,(PSZ)zBuf ,256 ); sRet = zBuf; @@ -68,7 +64,7 @@ void wxDataFormat::SetId ( ) { m_uFormat = ::WinAddAtom( ::WinQuerySystemAtomTable() - ,zId + ,(PSZ)zId ); } // end of wxDataFormat::SetId @@ -162,7 +158,7 @@ void CIDataObject::SetData ( , char* pzBuffer ) { - ULONG ulSize; + ULONG ulSize = 0; switch (rFormat.GetType()) { @@ -173,9 +169,11 @@ void CIDataObject::SetData ( ulSize = strlen((const char *)pzBuffer); break; +#if wxUSE_UNICODE case wxDF_UNICODETEXT: ulSize = ::wcslen((const wchar_t *)pzBuffer); break; +#endif case wxDF_BITMAP: case wxDF_METAFILE: @@ -263,7 +261,7 @@ bool wxFileDataObject::SetData( { /* TODO */ - wxString sFile( (const char *)pBuf); /* char, not wxChar */ + wxString sFile((const wxChar *)pBuf); /* char, not wxChar */ AddFile(sFile);