Module: wine Branch: master Commit: a9ae65d2f6ca4e2d5211c784a34dd38eb6e8288a URL: http://source.winehq.org/git/wine.git/?a=commit;h=a9ae65d2f6ca4e2d5211c784a3...
Author: Kirill K. Smirnov lich@math.spbu.ru Date: Fri Nov 10 17:20:53 2006 +0300
winhelp: Do not create popup window if file not found.
---
programs/winhelp/winhelp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/programs/winhelp/winhelp.c b/programs/winhelp/winhelp.c index 389ba5a..f7c0ae3 100644 --- a/programs/winhelp/winhelp.c +++ b/programs/winhelp/winhelp.c @@ -1195,7 +1195,7 @@ static LRESULT CALLBACK WINHELP_TextWndP 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;