Commit 219b987f authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

windowscodecs: Use a smaller magic number to detect JPEG files.

parent 78e6287f
......@@ -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}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment