- Port wine right.

svn path=/trunk/; revision=54254
This commit is contained in:
James Tabor 2011-10-25 02:53:44 +00:00
parent ee477c63ed
commit 46520a9bbe

View file

@ -241,7 +241,9 @@ static int DIB_GetBitmapInfo( const BITMAPINFOHEADER *header, LONG *width,
*compr = 0;
return 0;
}
else if (header->biSize >= sizeof(BITMAPINFOHEADER))
else if (header->biSize == sizeof(BITMAPINFOHEADER) ||
header->biSize == sizeof(BITMAPV4HEADER) ||
header->biSize == sizeof(BITMAPV5HEADER))
{
*width = header->biWidth;
*height = header->biHeight;