X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/348a9a6ff24ab84a35d730ba2d5b27eb7f53b80c..6a3f00bd6660d0326904d774d6e7a48a13af1f6f:/src/html/chm.cpp diff --git a/src/html/chm.cpp b/src/html/chm.cpp index 195e7b9a95..3d6ad7d60c 100644 --- a/src/html/chm.cpp +++ b/src/html/chm.cpp @@ -842,6 +842,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);