From: Julian Smart Date: Tue, 27 Jun 2006 07:55:15 +0000 (+0000) Subject: Remove use of GetVolumeInformation since it causes long delays on network drives. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/58f1fdc926e4fc0f0b8ca49384d72e51bea2e86b Remove use of GetVolumeInformation since it causes long delays on network drives. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/dirctrlg.cpp b/src/generic/dirctrlg.cpp index 1fbd5e997b..b5ea30a321 100644 --- a/src/generic/dirctrlg.cpp +++ b/src/generic/dirctrlg.cpp @@ -120,15 +120,9 @@ size_t wxGetAvailableDrives(wxArrayString &paths, wxArrayString &names, wxArrayI wxString path, name; 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);