Commit 04b10544 authored by Matthew Davison's avatar Matthew Davison Committed by Alexandre Julliard

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

parent ae247699
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment