X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/348a9a6ff24ab84a35d730ba2d5b27eb7f53b80c..3225a4b8b8656f25dac6cb20684a3c2c273cf796:/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);