From 0600361f98fe22a57cd3fb939abf3077b03978cc Mon Sep 17 00:00:00 2001 From: Michael Wetherell Date: Fri, 8 Oct 2010 11:16:54 +0000 Subject: [PATCH] Fix for wxChm git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@65784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/chm.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/html/chm.cpp b/src/html/chm.cpp index 980c60c364..520457c24c 100644 --- a/src/html/chm.cpp +++ b/src/html/chm.cpp @@ -825,6 +825,8 @@ wxFSFile* wxChmFSHandler::OpenFile(wxFileSystem& WXUNUSED(fs), } wxFileName leftFilename = wxFileSystem::URLToFileName(left); + if (!leftFilename.FileExists()) + return NULL; // Open a stream to read the content of the chm-file s = new wxChmInputStream(leftFilename.GetFullPath(), right, true);