From: Václav Slavík Date: Fri, 8 Sep 2000 22:02:46 +0000 (+0000) Subject: yet another fix in wxHtmlParser::DoParsing X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/99397a94d0084648c96c3195e73feb64821ed305 yet another fix in wxHtmlParser::DoParsing git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/html/htmlpars.cpp b/src/html/htmlpars.cpp index 213bd0f75b..65066aeddc 100644 --- a/src/html/htmlpars.cpp +++ b/src/html/htmlpars.cpp @@ -72,6 +72,8 @@ void wxHtmlParser::DoneParser() void wxHtmlParser::DoParsing(int begin_pos, int end_pos) { + if (end_pos <= begin_pos) return; + char c; char *temp = new char[end_pos - begin_pos + 1]; int i;