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

This commit is contained in:
Erich E. Hoover 2013-11-06 11:59:16 -07:00 committed by Alexandre Julliard
parent 6c0ee62d7a
commit 87b1115db1
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}