fixed crash on invalid data (patch 1039453)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -78,6 +78,11 @@ wxHtmlHelpIndexCompareFunc(wxHtmlHelpDataItem **a, wxHtmlHelpDataItem **b)
|
||||
wxHtmlHelpDataItem *ia = *a;
|
||||
wxHtmlHelpDataItem *ib = *b;
|
||||
|
||||
if (ia == NULL)
|
||||
return -1;
|
||||
if (ib == NULL)
|
||||
return 1;
|
||||
|
||||
if (ia->parent == ib->parent)
|
||||
{
|
||||
return ia->name.CmpNoCase(ib->name);
|
||||
|
Reference in New Issue
Block a user