From: Vadim Zeitlin Date: Wed, 19 Sep 2007 12:14:23 +0000 (+0000) Subject: use drives paths, not names, in the dialog to avoid confusing HandleAction() with... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e8548d99ac2708f19c42fcf8b7bbdf3036548929 use drives paths, not names, in the dialog to avoid confusing HandleAction() with the drive names which it fails to interpret properly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/filectrlg.cpp b/src/generic/filectrlg.cpp index 44486c1bf9..f85cf1d342 100644 --- a/src/generic/filectrlg.cpp +++ b/src/generic/filectrlg.cpp @@ -542,11 +542,23 @@ void wxFileListCtrl::UpdateFiles() { wxArrayString names, paths; wxArrayInt icons; - size_t n, count = wxGetAvailableDrives(paths, names, icons); + const size_t count = wxGetAvailableDrives(paths, names, icons); - for (n=0; n