]> git.saurik.com Git - wxWidgets.git/commitdiff
Correction to recently added wrong asserts.
authorWłodzimierz Skiba <abx@abx.art.pl>
Fri, 16 Jul 2004 13:05:36 +0000 (13:05 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Fri, 16 Jul 2004 13:05:36 +0000 (13:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/dirctrlg.cpp

index c3cfa24a9e7ddd8b646445d316f6d058ebc7ba49..d94244ca19a7579d8b2aec7af6e887db804542e5 100644 (file)
@@ -291,8 +291,8 @@ size_t wxGetAvailableDrives(wxArrayString &paths, wxArrayString &names, wxArrayI
 #else
     #error "Unsupported platform in wxGenericDirCtrl!"
 #endif
-    wxASSERT_MSG( (paths.GetCount() != names.GetCount()), wxT("Wrong number of paths or names."));
-    wxASSERT_MSG( (paths.GetCount() != icon_ids.GetCount()), wxT("Wrong number of icons for available drives."));
+    wxASSERT_MSG( (paths.GetCount() == names.GetCount()), wxT("The number of paths and their human readable names should be equal in number."));
+    wxASSERT_MSG( (paths.GetCount() == icon_ids.GetCount()), wxT("Wrong number of icons for available drives."));
     return paths.GetCount();
 }