From 179a30e2f8c28b2f093b658629c5a827fb29e51a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 30 May 2008 19:49:53 +0000 Subject: [PATCH] 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 --- src/html/htmlwin.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.45.2