Module: wine Branch: master Commit: 9f42e8eb63d5b69fd800c721972df21991b7fb1f URL: http://source.winehq.org/git/wine.git/?a=commit;h=9f42e8eb63d5b69fd800c72197...
Author: James Hawkins jhawkins@codeweavers.com Date: Tue May 20 00:40:27 2008 -0500
hhctrl.ocx: Check the filename param before dereferencing it.
---
dlls/hhctrl.ocx/hhctrl.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
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;