Commit 9f42e8eb authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

hhctrl.ocx: Check the filename param before dereferencing it.

parent 70cd6bfb
...@@ -108,6 +108,9 @@ HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD_PTR dat ...@@ -108,6 +108,9 @@ HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD_PTR dat
FIXME("Not all HH cases handled correctly\n"); FIXME("Not all HH cases handled correctly\n");
if (!filename)
return NULL;
index = strstrW(filename, delimW); index = strstrW(filename, delimW);
if (index) if (index)
{ {
...@@ -141,6 +144,9 @@ HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD_PTR dat ...@@ -141,6 +144,9 @@ HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD_PTR dat
HHInfo *info; HHInfo *info;
LPWSTR url; LPWSTR url;
if (!filename)
return NULL;
info = CreateHelpViewer(filename); info = CreateHelpViewer(filename);
if(!info) if(!info)
return NULL; return NULL;
......
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