gdi32: Fix colour table comparison.

This commit is contained in:
Huw Davies 2011-08-19 16:26:10 +01:00 committed by Alexandre Julliard
parent a04f0e9c78
commit 40742c2f72

View File

@ -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: