Commit c689451c authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

hhctrl.ocx: Ensure that the topic within MSITStore url's begins with /.

parent 8309788b
......@@ -115,7 +115,9 @@ BOOL NavigateToChm(HHInfo *info, LPCWSTR file, LPCWSTR index)
LPWSTR ptr;
static const WCHAR url_format[] =
{'m','k',':','@','M','S','I','T','S','t','o','r','e',':','%','s',':',':','%','s',0};
{'m','k',':','@','M','S','I','T','S','t','o','r','e',':','%','s',':',':','%','s','%','s',0};
static const WCHAR slash[] = {'/',0};
static const WCHAR empty[] = {0};
TRACE("%p %s %s\n", info, debugstr_w(file), debugstr_w(index));
......@@ -127,7 +129,7 @@ BOOL NavigateToChm(HHInfo *info, LPCWSTR file, LPCWSTR index)
return FALSE;
}
wsprintfW(buf, url_format, full_path, index);
wsprintfW(buf, url_format, full_path, index[0] == '/' ? empty : slash, index);
/* FIXME: HACK */
if((ptr = strchrW(buf, '#')))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment