(BMP): another header special case work-around.

This commit is contained in:
morkt 2018-12-19 03:26:02 +04:00
parent 87c5b40e05
commit c6f04a06e6

View File

@ -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;
}