Commit 1a0a47d6 authored by Stefan Stranz's avatar Stefan Stranz Committed by Alexandre Julliard

winhlp32: Fix crash on launch.

parent d099c90e
......@@ -274,7 +274,7 @@ HLPFILE_WINDOWINFO* WINHELP_GetWindowInfo(HLPFILE* hlpfile, LPCSTR name)
{
strcpy(mwi.type, "primary");
strcpy(mwi.name, "main");
if (hlpfile->lpszTitle[0])
if (hlpfile && hlpfile->lpszTitle[0])
{
char tmp[128];
LoadString(Globals.hInstance, STID_WINE_HELP, tmp, sizeof(tmp));
......
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