diff options
Diffstat (limited to 'ami.c')
-rw-r--r-- | ami.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -249,7 +249,7 @@ AMI95Extract(unsigned char *BIOSImage, int BIOSLength, int BIOSOffset, else BufferSize = le16toh(part->CSize); - if ((BufferSize == 0xFFFF) && !Compressed) { + if (((BufferSize == 0xFFFF) || !BufferSize) && !Compressed) { bigpart = (struct bigpart *) (BIOSImage + (Offset - BIOSOffset) - sizeof(struct bigpart)); BufferSize = bigpart->CSize; } |