Commit 38acaccd authored by Andrey Turkin's avatar Andrey Turkin Committed by Alexandre Julliard

hhctrl.ocx: Do not try to dereference NULL pointer if CreateHelpViewer failed.

parent 41342a32
......@@ -107,9 +107,12 @@ HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD_PTR dat
info = CreateHelpViewer(filename);
res = NavigateToChm(info, info->pCHMInfo->szFile, info->WinType.pszFile);
if(!res)
ReleaseHelpViewer(info);
if (info)
{
res = NavigateToChm(info, info->pCHMInfo->szFile, info->WinType.pszFile);
if(!res)
ReleaseHelpViewer(info);
}
return NULL; /* FIXME */
}
......
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