diff --git a/programs/winhlp32/winhelp.c b/programs/winhlp32/winhelp.c index 1639c141b0b..08d3875aba1 100644 --- a/programs/winhlp32/winhelp.c +++ b/programs/winhlp32/winhelp.c @@ -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));