]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/chm.cpp
Derive wxWebViewEvent from wxNotifyEvent.
[wxWidgets.git] / src / html / chm.cpp
index 195e7b9a95fe9c71a3dcf064f29fe58f27a08d2a..3d6ad7d60ce4a764414ed96b2f00870898bea81d 100644 (file)
@@ -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);