]> git.saurik.com Git - wxWidgets.git/commitdiff
Look for help file in Windows if not found elsewhere
authorJulian Smart <julian@anthemion.co.uk>
Wed, 13 Apr 2005 18:00:08 +0000 (18:00 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 13 Apr 2005 18:00:08 +0000 (18:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/wince/helpwce.cpp

index 0196bb69075308c91848e411e549f3644855ad5a..5b1383180e1c9c962a0078d6ff959bdbeaf2538e 100644 (file)
@@ -103,6 +103,10 @@ wxString wxWinceHelpController::GetValidFilename(const wxString& file) const
         fullName = path + name + wxT(".htm");
     else
         fullName = path + wxT("\\") + name + wxT(".htm");
+
+    if (!wxFileExists(fullName))
+        fullName = wxT("\\Windows\\") + name + wxT(".htm");
+
     return fullName;
 }