Module: wine Branch: master Commit: 01128fa35b0c16e91837ff213f2d4f7cd18d4377 URL: http://source.winehq.org/git/wine.git/?a=commit;h=01128fa35b0c16e91837ff213f...
Author: Vladimir Pankratov scriptkid@mail.ru Date: Tue Aug 11 17:07:00 2009 +0500
hhctrl.ocx: Handle NULL param.
---
dlls/hhctrl.ocx/help.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/hhctrl.ocx/help.c b/dlls/hhctrl.ocx/help.c index a19e1e6..092e97e 100644 --- a/dlls/hhctrl.ocx/help.c +++ b/dlls/hhctrl.ocx/help.c @@ -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, '#')))