Commit 87b1115d authored by Erich E. Hoover's avatar Erich E. Hoover Committed by Alexandre Julliard

hhctrl.ocx: Do not destroy the HTML Help window when HH_HELP_CONTEXT finds no context id of 0.

parent 6c0ee62d
......@@ -273,6 +273,8 @@ HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD_PTR dat
url = FindContextAlias(info->pCHMInfo, data);
if(!url)
{
if(!data) /* there may legitimately be no context alias for id 0 */
return info->WinType.hwndHelp;
ReleaseHelpViewer(info);
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