From 58f1fdc926e4fc0f0b8ca49384d72e51bea2e86b Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 27 Jun 2006 07:55:15 +0000 Subject: [PATCH] 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 --- src/generic/dirctrlg.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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); -- 2.45.2