Fix crashes due to unitialised fields

This commit is contained in:
Graham Dawes
2018-12-20 10:38:50 +00:00
parent c6d3b9c0b9
commit bfb59228c1
20 changed files with 46 additions and 19 deletions

View File

@@ -112,8 +112,9 @@ bool wxComboBox::Create(wxWindow *parent, wxWindowID id,
const wxValidator& validator,
const wxString& name )
{
return Create( parent, id, value, pos, size, choices.size(), &choices[ 0 ],
style, validator, name );
const wxString *pChoices = choices.size() ? &choices[ 0 ] : NULL;
return Create(parent, id, value, pos, size, choices.size(), pChoices,
style, validator, name );
}