Skip to content
Snippets Groups Projects
Commit bdc3b9c0 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard
Browse files

gdi32: Avoid a possible unnecessary conversion if PutImage is called with zero biClrUsed.

parent 40742c2f
No related branches found
No related tags found
No related merge requests found
......@@ -444,7 +444,7 @@ static BOOL matching_color_info( const dib_info *dib, const BITMAPINFO *info )
case 8:
{
RGBQUAD *color_table = (RGBQUAD *)((char *)info + info->bmiHeader.biSize);
if (dib->color_table_size != info->bmiHeader.biClrUsed ) return FALSE;
if (dib->color_table_size != get_dib_num_of_colors( info )) return FALSE;
return !memcmp( color_table, dib->color_table, dib->color_table_size * sizeof(RGBQUAD) );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment