hhctrl.ocx: Do not destroy the HTML Help window when HH_HELP_CONTEXT finds no context id of 0.
This commit is contained in:
parent
6c0ee62d7a
commit
87b1115db1
|
@ -273,6 +273,8 @@ HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD_PTR dat
|
||||||
url = FindContextAlias(info->pCHMInfo, data);
|
url = FindContextAlias(info->pCHMInfo, data);
|
||||||
if(!url)
|
if(!url)
|
||||||
{
|
{
|
||||||
|
if(!data) /* there may legitimately be no context alias for id 0 */
|
||||||
|
return info->WinType.hwndHelp;
|
||||||
ReleaseHelpViewer(info);
|
ReleaseHelpViewer(info);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue