X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0026e0f231f78002ce2e77fd477a7ba45a5a63bf..cc59d9396317abec50b184cdfc8fd0bab0058d82:/src/generic/dirctrlg.cpp diff --git a/src/generic/dirctrlg.cpp b/src/generic/dirctrlg.cpp index 11e112db2a..b631aa69cd 100644 --- a/src/generic/dirctrlg.cpp +++ b/src/generic/dirctrlg.cpp @@ -118,12 +118,13 @@ size_t wxGetAvailableDrives(wxArrayString &paths, wxArrayString &names, wxArrayI name.Printf(wxT("%c:"), driveBuffer[i]); #if !defined(__WXWINCE__) - wxChar pname[52]; - if (GetVolumeInformation( path.c_str(), pname, 52, NULL, NULL, NULL, NULL, NULL )) + wxChar pname[52]; // FIXME: why 52 and not MAX_PATH or whatever? + if ( GetVolumeInformation(path, pname, WXSIZEOF(pname), + NULL, NULL, NULL, NULL, 0) ) { - name.Printf(wxT("%s %s"), (const wxChar*) name, pname ); + name << _T(' ') << pname; } -#endif +#endif // __WXWINCE__ int imageId; int driveType = ::GetDriveType(path); @@ -1483,7 +1484,7 @@ wxImageList *wxFileIconsTable::GetSmallImageList() return m_smallImageList; } -#if wxUSE_MIMETYPE && wxUSE_IMAGE +#if wxUSE_MIMETYPE && wxUSE_IMAGE && (!defined(__WXMSW__) || wxUSE_WXDIB) // VS: we don't need this function w/o wxMimeTypesManager because we'll only have // one icon and we won't resize it @@ -1643,7 +1644,7 @@ int wxFileIconsTable::GetIconID(const wxString& extension, const wxString& mime) { m_smallImageList->Add(bmp); } -#if wxUSE_IMAGE +#if wxUSE_IMAGE && (!defined(__WXMSW__) || wxUSE_WXDIB) else { wxImage img = bmp.ConvertToImage();