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

This commit is contained in:
Vincent Povirk 2009-08-07 15:27:18 +02:00 committed by Alexandre Julliard
parent 8309788b55
commit c689451cd1

View file

@ -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, '#')))