X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/92379a031b43293db5c88ef69b4cad9fd3c7abf2..e989060057cc2150b60fa1baff68faa5476c3fd6:/src/generic/dirctrlg.cpp diff --git a/src/generic/dirctrlg.cpp b/src/generic/dirctrlg.cpp index c3cfa24a9e..d94244ca19 100644 --- a/src/generic/dirctrlg.cpp +++ b/src/generic/dirctrlg.cpp @@ -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(); }