From: Vadim Zeitlin Date: Fri, 30 May 2008 19:49:53 +0000 (+0000) Subject: check that the argument is not empty in wxHtmlWindow::LoadPage() to avoid crashing... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/179a30e2f8c28b2f093b658629c5a827fb29e51a?ds=inline check that the argument is not empty in wxHtmlWindow::LoadPage() to avoid crashing if it is git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp index 898aa48bc3..11c6e1e44c 100644 --- a/src/html/htmlwin.cpp +++ b/src/html/htmlwin.cpp @@ -468,6 +468,8 @@ bool wxHtmlWindow::AppendToPage(const wxString& source) bool wxHtmlWindow::LoadPage(const wxString& location) { + wxCHECK_MSG( !location.empty(), false, "location must be non-empty" ); + wxBusyCursor busyCursor; wxFSFile *f;