winhlp32: Check hlpfile for being NULL (Coverity).
This commit is contained in:
parent
54e8ecf1b0
commit
55ae86ccb1
|
@ -274,7 +274,7 @@ HLPFILE_WINDOWINFO* WINHELP_GetWindowInfo(HLPFILE* hlpfile, LPCSTR name)
|
|||
{
|
||||
strcpy(mwi.type, "primary");
|
||||
strcpy(mwi.name, "main");
|
||||
if (!LoadString(Globals.hInstance, STID_WINE_HELP,
|
||||
if (hlpfile && !LoadString(Globals.hInstance, STID_WINE_HELP,
|
||||
mwi.caption, sizeof(mwi.caption)))
|
||||
strcpy(mwi.caption, hlpfile->lpszTitle);
|
||||
mwi.origin.x = mwi.origin.y = mwi.size.cx = mwi.size.cy = CW_USEDEFAULT;
|
||||
|
|
Loading…
Reference in New Issue