Huw Davies : gdi32: Fix colour table comparison.

Alexandre Julliard julliard at winehq.org
Mon Aug 22 13:29:08 CDT 2011


Module: wine
Branch: master
Commit: 40742c2f725e8a5f987471ccaafb59aa5c03820d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=40742c2f725e8a5f987471ccaafb59aa5c03820d

Author: Huw Davies <huw at codeweavers.com>
Date:   Fri Aug 19 16:26:10 2011 +0100

gdi32: Fix colour table comparison.

---

 dlls/gdi32/dibdrv/dc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/gdi32/dibdrv/dc.c b/dlls/gdi32/dibdrv/dc.c
index 6ffb554..21ebec8 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:




More information about the wine-cvs mailing list