hhctrl.ocx: Handle NULL param.
This commit is contained in:
parent
99538272d5
commit
01128fa35b
|
@ -129,7 +129,7 @@ BOOL NavigateToChm(HHInfo *info, LPCWSTR file, LPCWSTR index)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
wsprintfW(buf, url_format, full_path, index[0] == '/' ? empty : slash, index);
|
||||
wsprintfW(buf, url_format, full_path, (!index || index[0] == '/') ? empty : slash, index);
|
||||
|
||||
/* FIXME: HACK */
|
||||
if((ptr = strchrW(buf, '#')))
|
||||
|
|
Loading…
Reference in New Issue