diff --git a/dlls/hhctrl.ocx/hhctrl.c b/dlls/hhctrl.ocx/hhctrl.c index a555a42..a224b64 100644 --- a/dlls/hhctrl.ocx/hhctrl.c +++ b/dlls/hhctrl.ocx/hhctrl.c @@ -108,6 +108,9 @@ HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD_PTR dat FIXME("Not all HH cases handled correctly\n"); + if (!filename) + return NULL; + index = strstrW(filename, delimW); if (index) { @@ -141,6 +144,9 @@ HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD_PTR dat HHInfo *info; LPWSTR url; + if (!filename) + return NULL; + info = CreateHelpViewer(filename); if(!info) return NULL; -- 1.5.4.3