mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +08:00
(BMP): another header special case work-around.
This commit is contained in:
parent
87c5b40e05
commit
c6f04a06e6
@ -117,7 +117,7 @@ namespace GameRes
|
||||
if (size < 14+header_size)
|
||||
{
|
||||
// some otherwise valid bitmaps have size field set to zero
|
||||
if (size != 0 || !file.AsStream.CanSeek)
|
||||
if (size != 0 && size != 0xE || !file.AsStream.CanSeek)
|
||||
return null;
|
||||
size = (uint)file.Length;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user