Corrected an issue where "extresist" crashes magic if the .ext file
it needs to read doesn't exist.
This commit is contained in:
parent
b248f186ec
commit
94edc2a23d
|
|
@ -114,7 +114,8 @@ ResReadExt(char *extfile)
|
|||
/* Search for the .ext fie in the same way that efReadDef() does. */
|
||||
|
||||
fp = PaOpen(extfile, "r", ".ext", EFSearchPath, EFLibPath, (char **)NULL);
|
||||
if ((fp == NULL) && (dbdef = DBCellLookDef(extfile)) != NULL)
|
||||
if ((fp == NULL) && ((dbdef = DBCellLookDef(extfile)) != NULL)
|
||||
&& (dbdef->cd_file != NULL))
|
||||
{
|
||||
char *filepath, *sptr;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue