Vincent Povirk : windowscodecs: Use a smaller magic number to detect JPEG files.
Alexandre Julliard
julliard at winehq.org
Thu Oct 13 14:10:11 CDT 2011
Module: wine
Branch: master
Commit: 219b987fa11cff464eaf76065adf687e9fb400d1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=219b987fa11cff464eaf76065adf687e9fb400d1
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Tue Oct 11 11:36:05 2011 -0500
windowscodecs: Use a smaller magic number to detect JPEG files.
---
dlls/windowscodecs/regsvr.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/regsvr.c b/dlls/windowscodecs/regsvr.c
index 1ea0aa0..bc12e40 100644
--- a/dlls/windowscodecs/regsvr.c
+++ b/dlls/windowscodecs/regsvr.c
@@ -720,7 +720,7 @@ static struct decoder_pattern const ico_patterns[] = {
{0}
};
-static const BYTE jpeg_magic[] = {0xff, 0xd8, 0xff, 0xe0};
+static const BYTE jpeg_magic[] = {0xff, 0xd8};
static GUID const * const jpeg_formats[] = {
&GUID_WICPixelFormat24bppBGR,
@@ -730,7 +730,7 @@ static GUID const * const jpeg_formats[] = {
};
static struct decoder_pattern const jpeg_patterns[] = {
- {4,0,jpeg_magic,mask_all,0},
+ {2,0,jpeg_magic,mask_all,0},
{0}
};
More information about the wine-cvs
mailing list