Commit 01128fa3 authored by Vladimir Pankratov's avatar Vladimir Pankratov Committed by Alexandre Julliard

hhctrl.ocx: Handle NULL param.

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