]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix for wxChm
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Fri, 8 Oct 2010 11:16:54 +0000 (11:16 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Fri, 8 Oct 2010 11:16:54 +0000 (11:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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);