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
This commit is contained in:
Vadim Zeitlin
2008-05-30 19:49:53 +00:00
parent 3e50a139b4
commit 179a30e2f8

View File

@@ -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;