winhelp: Do not create popup window if file not found.

oldstable
Kirill K. Smirnov 2006-11-10 17:20:53 +03:00 committed by Alexandre Julliard
parent 2f6fb152a2
commit a9ae65d2f6
1 changed files with 1 additions and 1 deletions

View File

@ -1195,7 +1195,7 @@ static LRESULT CALLBACK WINHELP_TextWndProc(HWND hWnd, UINT msg, WPARAM wParam,
break;
case hlp_link_popup:
hlpfile = WINHELP_LookupHelpFile(part->link->lpszString);
WINHELP_CreateHelpWindowByHash(hlpfile, part->link->lHash,
if (hlpfile) WINHELP_CreateHelpWindowByHash(hlpfile, part->link->lHash,
WINHELP_GetPopupWindowInfo(hlpfile, hWnd, &mouse),
SW_NORMAL);
break;