Dmitry Timoshkov : windowscodecs: Use symbolic names for GIF extensions.

Alexandre Julliard julliard at winehq.org
Tue Sep 18 14:04:29 CDT 2012


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

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Tue Sep 18 13:02:51 2012 +0900

windowscodecs: Use symbolic names for GIF extensions.

---

 dlls/windowscodecs/gifformat.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/windowscodecs/gifformat.c b/dlls/windowscodecs/gifformat.c
index e3c2661..1dce11d 100644
--- a/dlls/windowscodecs/gifformat.c
+++ b/dlls/windowscodecs/gifformat.c
@@ -348,7 +348,8 @@ static HRESULT load_APE_metadata(IStream *stream, const GUID *vendor, DWORD opti
 
     hr = IStream_Read(stream, &ape_data, sizeof(ape_data), &bytesread);
     if (FAILED(hr) || bytesread != sizeof(ape_data)) return S_OK;
-    if (ape_data.extension_introducer != 0x21 || ape_data.extension_label != 0xff ||
+    if (ape_data.extension_introducer != 0x21 ||
+        ape_data.extension_label != APPLICATION_EXT_FUNC_CODE ||
         ape_data.block_size != 11)
         return S_OK;
 
@@ -455,7 +456,8 @@ static HRESULT load_GifComment_metadata(IStream *stream, const GUID *vendor, DWO
 
     hr = IStream_Read(stream, &ext_data, sizeof(ext_data), &bytesread);
     if (FAILED(hr) || bytesread != sizeof(ext_data)) return S_OK;
-    if (ext_data.extension_introducer != 0x21 || ext_data.extension_label != 0xfe)
+    if (ext_data.extension_introducer != 0x21 ||
+        ext_data.extension_label != COMMENT_EXT_FUNC_CODE)
         return S_OK;
 
     data = NULL;




More information about the wine-cvs mailing list