]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove use of GetVolumeInformation since it causes long delays on network drives.
authorJulian Smart <julian@anthemion.co.uk>
Tue, 27 Jun 2006 07:55:15 +0000 (07:55 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 27 Jun 2006 07:55:15 +0000 (07:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/dirctrlg.cpp

index 1fbd5e997bf1f54365556e1ad91c641963375d6c..b5ea30a32186d9d98adc60e43d08cde42263f828 100644 (file)
@@ -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);