From 40742c2f725e8a5f987471ccaafb59aa5c03820d Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Fri, 19 Aug 2011 16:26:10 +0100 Subject: [PATCH] gdi32: Fix colour table comparison. --- dlls/gdi32/dibdrv/dc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/gdi32/dibdrv/dc.c b/dlls/gdi32/dibdrv/dc.c index 6ffb5540d0..21ebec8a9c 100644 --- a/dlls/gdi32/dibdrv/dc.c +++ b/dlls/gdi32/dibdrv/dc.c @@ -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: