Commit 40742c2f authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

gdi32: Fix colour table comparison.

parent a04f0e9c
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment