mirror of
https://github.com/reactos/wine.git
synced 2025-02-28 08:46:31 +00:00
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…
x
Reference in New Issue
Block a user