hhctrl.ocx: Check the filename param before dereferencing it.
This commit is contained in:
parent
70cd6bfbbd
commit
9f42e8eb63
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue