Prevent Winhelp from crashing when it can't find the helpfile.

This commit is contained in:
Matthew Davison 2002-11-27 20:12:37 +00:00 committed by Alexandre Julliard
parent ae24769927
commit 04b1054440
1 changed files with 2 additions and 0 deletions

View File

@ -197,6 +197,8 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show)
/* Create primary window */
WINHELP_RegisterWinClasses();
hlpfile = WINHELP_LookupHelpFile(cmdline);
if (!hlpfile)
return 0;
WINHELP_CreateHelpWindowByHash(hlpfile, lHash,
WINHELP_GetWindowInfo(hlpfile, "main"), show);