X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/348a9a6ff24ab84a35d730ba2d5b27eb7f53b80c..08670ea85abf4b4946a9ce64971b591d7b1ee30b:/src/html/chm.cpp?ds=inline 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);