http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76299b3
)
hhctrl.ocx: Look up in chm if url doesn't contain "://".
author
Hin-Tak Leung
<hintak_leung@yahoo.co.uk>
Mon, 14 Apr 2008 20:17:27 +0000
(20:17 +0000)
committer
Alexandre Julliard
<julliard@winehq.org>
Thu, 17 Apr 2008 10:37:40 +0000
(12:37 +0200)
dlls/hhctrl.ocx/help.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/hhctrl.ocx/help.c
b/dlls/hhctrl.ocx/help.c
index 900cfd9c197d706bdce5055840a842d916593469..a2081cef94fae4967c46c01b50cc5d50eac04e59 100644
(file)
--- a/
dlls/hhctrl.ocx/help.c
+++ b/
dlls/hhctrl.ocx/help.c
@@
-89,9
+89,15
@@
BOOL NavigateToUrl(HHInfo *info, LPCWSTR surl)
BOOL ret;
HRESULT hres;
- hres = navigate_url(info, surl);
- if(SUCCEEDED(hres))
- return TRUE;
+ static const WCHAR url_indicator[] = {':', '/', '/'};
+
+ TRACE("%s\n", debugstr_w(surl));
+
+ if (strstrW(surl, url_indicator)) {
+ hres = navigate_url(info, surl);
+ if(SUCCEEDED(hres))
+ return TRUE;
+ } /* look up in chm if it doesn't look like a full url */
SetChmPath(&chm_path, info->pCHMInfo->szFile, surl);
ret = NavigateToChm(info, chm_path.chm_file, chm_path.chm_index);