X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd05139a8023fd3e30476409fafbe04221c6d627..177df6c5f6c24251cab056ce39e206ec3fd6b44b:/src/generic/dirctrlg.cpp diff --git a/src/generic/dirctrlg.cpp b/src/generic/dirctrlg.cpp index 1fbd5e997b..cf1e8c5e11 100644 --- a/src/generic/dirctrlg.cpp +++ b/src/generic/dirctrlg.cpp @@ -36,6 +36,7 @@ #include "wx/sizer.h" #include "wx/textdlg.h" #include "wx/gdicmn.h" + #include "wx/image.h" #endif #include "wx/module.h" @@ -45,7 +46,6 @@ #include "wx/dir.h" #include "wx/artprov.h" #include "wx/mimetype.h" -#include "wx/image.h" #if wxUSE_STATLINE #include "wx/statline.h" @@ -121,14 +121,8 @@ size_t wxGetAvailableDrives(wxArrayString &paths, wxArrayString &names, wxArrayI path.Printf(wxT("%c:\\"), driveBuffer[i]); name.Printf(wxT("%c:"), driveBuffer[i]); -#if !defined(__WXWINCE__) - wxChar pname[52]; // FIXME: why 52 and not MAX_PATH or whatever? - if ( GetVolumeInformation(path, pname, WXSIZEOF(pname), - NULL, NULL, NULL, NULL, 0) ) - { - name << _T(' ') << pname; - } -#endif // __WXWINCE__ + // Do not use GetVolumeInformation to further decorate the + // name, since it can cause severe delays on network drives. int imageId; int driveType = ::GetDriveType(path);