hhctrl.ocx: Handle NULL param.

This commit is contained in:
Vladimir Pankratov 2009-08-11 17:07:00 +05:00 committed by Alexandre Julliard
parent 99538272d5
commit 01128fa35b
1 changed files with 1 additions and 1 deletions

View File

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