warning fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-07-20 14:05:48 +00:00
parent 2d75caaa6d
commit a8e25474e4

View File

@@ -871,8 +871,10 @@ wxGenericFileDialog::wxGenericFileDialog(wxWindow *parent,
// interpret wildcards
wxArrayString wildDescriptions, wildFilters;
int wild_count = ParseWildcard(m_wildCard, wildDescriptions, wildFilters);
wxASSERT_MSG(wild_count > 0, wxT("Wrong file type descripition") );
if ( !ParseWildcard(m_wildCard, wildDescriptions, wildFilters) )
{
wxFAIL_MSG( wxT("Wrong file type descripition") );
}
// layout