mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +00:00
gdi32: Fix colour table comparison.
This commit is contained in:
parent
a04f0e9c78
commit
40742c2f72
@ -445,7 +445,7 @@ static BOOL matching_color_info( const dib_info *dib, const BITMAPINFO *info )
|
||||
{
|
||||
RGBQUAD *color_table = (RGBQUAD *)((char *)info + info->bmiHeader.biSize);
|
||||
if (dib->color_table_size != info->bmiHeader.biClrUsed ) return FALSE;
|
||||
return memcmp( color_table, dib->color_table, dib->color_table_size * sizeof(RGBQUAD) );
|
||||
return !memcmp( color_table, dib->color_table, dib->color_table_size * sizeof(RGBQUAD) );
|
||||
}
|
||||
|
||||
case 16:
|
||||
|
Loading…
Reference in New Issue
Block a user