]> git.saurik.com Git - wxWidgets.git/commitdiff
check that the argument is not empty in wxHtmlWindow::LoadPage() to avoid crashing...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 30 May 2008 19:49:53 +0000 (19:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 30 May 2008 19:49:53 +0000 (19:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/htmlwin.cpp

index 898aa48bc39eeb73746ccd9292286ee89d37d95e..11c6e1e44c924771f31c981d9ddde888c74e866f 100644 (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;