bios_extract: Fix Phoenix scan aborting too early if invalid BCPSYS data is found (A40HT00I)

This commit is contained in:
RichardG867
2022-09-03 20:23:00 -03:00
parent 5d5b95e907
commit df28ff3396

View File

@@ -1004,10 +1004,8 @@ PhoenixExtract(unsigned char *BIOSImage, int BIOSLength, int BIOSOffset,
Offset &= (BIOSLength - 1);
if (!Offset) {
fprintf(stderr, "BCPSYS module offset is NULL.\n");
if (!FFV) {
return FALSE;
}
return PhoenixFFV(BIOSImage, BIOSLength, FFV);
if (FFV)
PhoenixFFV(BIOSImage, BIOSLength, FFV);
}
while (Offset) {