Prevent Winhelp from crashing when it can't find the helpfile.
This commit is contained in:
parent
ae24769927
commit
04b1054440
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue