Dmitry Timoshkov : gdiplus: Correct signature/mask info for the GIF codec.

Alexandre Julliard julliard at winehq.org
Mon Aug 27 14:35:02 CDT 2012


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

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Mon Aug 27 12:04:31 2012 +0900

gdiplus: Correct signature/mask info for the GIF codec.

---

 dlls/gdiplus/image.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index f40713b..c3a542b 100644
--- a/dlls/gdiplus/image.c
+++ b/dlls/gdiplus/image.c
@@ -3759,8 +3759,8 @@ static const WCHAR gif_codecname[] = {'B', 'u', 'i','l', 't', '-','i', 'n', ' ',
 static const WCHAR gif_extension[] = {'*','.','G','I','F',0};
 static const WCHAR gif_mimetype[] = {'i','m','a','g','e','/','g','i','f', 0};
 static const WCHAR gif_format[] = {'G','I','F',0};
-static const BYTE gif_sig_pattern[4] = "GIF8";
-static const BYTE gif_sig_mask[] = { 0xFF, 0xFF, 0xFF, 0xFF };
+static const BYTE gif_sig_pattern[12] = "GIF87aGIF89a";
+static const BYTE gif_sig_mask[] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
 
 static const WCHAR tiff_codecname[] = {'B', 'u', 'i','l', 't', '-','i', 'n', ' ', 'T','I','F','F', 0};
 static const WCHAR tiff_extension[] = {'*','.','T','I','F','F',';','*','.','T','I','F',0};
@@ -3847,8 +3847,8 @@ static const struct image_codec codecs[NUM_CODECS] = {
             /* MimeType */           gif_mimetype,
             /* Flags */              ImageCodecFlagsDecoder | ImageCodecFlagsSupportBitmap | ImageCodecFlagsBuiltin,
             /* Version */            1,
-            /* SigCount */           1,
-            /* SigSize */            4,
+            /* SigCount */           2,
+            /* SigSize */            6,
             /* SigPattern */         gif_sig_pattern,
             /* SigMask */            gif_sig_mask,
         },




More information about the wine-cvs mailing list