diff options
author | Andrew Goodbody <ajg02@elfringham.co.uk> | 2010-03-27 13:12:52 +0100 |
---|---|---|
committer | Luc Verhaegen <libv@skynet.be> | 2010-03-27 13:12:52 +0100 |
commit | 586c943fb9ce7eedd1e326a8e9244bd8dc408d30 (patch) | |
tree | 5a5cbf1a26f164f0361a519217b6e5370dc6117a | |
parent | b75b76af0b4bfcedda042200ea63e392b6144d30 (diff) |
AMI: If BufferSize = 0, also try to get bigpart size.
-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; } |