mirror of
https://github.com/lifegpc/GARbro.git
synced 2026-06-06 05:28:49 +08:00
(BMP): another header special case work-around.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user