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

This commit is contained in:
Vincent Povirk 2011-10-11 11:36:05 -05:00 committed by Alexandre Julliard
parent 78e6287f71
commit 219b987fa1
1 changed files with 2 additions and 2 deletions

View File

@ -720,7 +720,7 @@ static struct decoder_pattern const ico_patterns[] = {
{0} {0}
}; };
static const BYTE jpeg_magic[] = {0xff, 0xd8, 0xff, 0xe0}; static const BYTE jpeg_magic[] = {0xff, 0xd8};
static GUID const * const jpeg_formats[] = { static GUID const * const jpeg_formats[] = {
&GUID_WICPixelFormat24bppBGR, &GUID_WICPixelFormat24bppBGR,
@ -730,7 +730,7 @@ static GUID const * const jpeg_formats[] = {
}; };
static struct decoder_pattern const jpeg_patterns[] = { static struct decoder_pattern const jpeg_patterns[] = {
{4,0,jpeg_magic,mask_all,0}, {2,0,jpeg_magic,mask_all,0},
{0} {0}
}; };