From a9ae65d2f6ca4e2d5211c784a34dd38eb6e8288a Mon Sep 17 00:00:00 2001 From: "Kirill K. Smirnov" Date: Fri, 10 Nov 2006 17:20:53 +0300 Subject: [PATCH] winhelp: Do not create popup window if file not found. --- programs/winhelp/winhelp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/winhelp/winhelp.c b/programs/winhelp/winhelp.c index 389ba5a10c0..f7c0ae36e1c 100644 --- a/programs/winhelp/winhelp.c +++ b/programs/winhelp/winhelp.c @@ -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;