Don't be too strict when checking icon flags. (#435062)
2007-05-01 Matthias Clasen <mclasen@redhat.com> * gtk/gtkiconcachevalidator.c: Don't be too strict when checking icon flags. (#435062) svn path=/trunk/; revision=17767
This commit is contained in:
committed by
Matthias Clasen
parent
321817db53
commit
fdd5aa6e5b
@ -1,3 +1,8 @@
|
|||||||
|
2007-05-01 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkiconcachevalidator.c: Don't be too strict when checking
|
||||||
|
icon flags. (#435062)
|
||||||
|
|
||||||
2007-05-01 Matthias Clasen <mclasen@redhat.com>
|
2007-05-01 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/Makefile.am: When generating gtkbuiltincache.h, only copy
|
* gtk/Makefile.am: When generating gtkbuiltincache.h, only copy
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
#include <gdk-pixbuf/gdk-pixdata.h>
|
#include <gdk-pixbuf/gdk-pixdata.h>
|
||||||
|
|
||||||
|
|
||||||
#define VERBOSE(x)
|
#define VERBOSE(x) x
|
||||||
|
|
||||||
#define check(name,condition) \
|
#define check(name,condition) \
|
||||||
if (!(condition)) \
|
if (!(condition)) \
|
||||||
@ -262,8 +262,7 @@ check_image (CacheInfo *info,
|
|||||||
get_uint32 (info, offset + 4, &image_data_offset));
|
get_uint32 (info, offset + 4, &image_data_offset));
|
||||||
|
|
||||||
check ("image index", index < info->n_directories);
|
check ("image index", index < info->n_directories);
|
||||||
check ("image flags", flags == 1 || flags == 2 || flags == 4 ||
|
check ("image flags", flags < 16);
|
||||||
flags == 9 || flags == 10 || flags == 12);
|
|
||||||
|
|
||||||
if (image_data_offset != 0)
|
if (image_data_offset != 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user