From: Julian Smart <julian@anthemion.co.uk>
Date: Wed, 13 Apr 2005 18:00:08 +0000 (+0000)
Subject: Look for help file in Windows if not found elsewhere
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/45dbd8337e7dbab7880bad275237da2584e5c6dd

Look for help file in Windows if not found elsewhere


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/msw/wince/helpwce.cpp b/src/msw/wince/helpwce.cpp
index 0196bb6907..5b1383180e 100644
--- a/src/msw/wince/helpwce.cpp
+++ b/src/msw/wince/helpwce.cpp
@@ -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;
 }