mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +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)
|
if (size < 14+header_size)
|
||||||
{
|
{
|
||||||
// some otherwise valid bitmaps have size field set to zero
|
// 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;
|
return null;
|
||||||
size = (uint)file.Length;
|
size = (uint)file.Length;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user