From e8548d99ac2708f19c42fcf8b7bbdf3036548929 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 19 Sep 2007 12:14:23 +0000 Subject: [PATCH] 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 --- src/generic/filectrlg.cpp | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) 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