From 0521d1c2cb8ef50bc9180f94d49ff9f595d8b4d7 Mon Sep 17 00:00:00 2001 From: raster Date: Fri, 12 Aug 2011 02:34:34 +0000 Subject: [PATCH] how about you actuallyl fix the code correctly rather than break it? git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@62369 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/modules/loaders/gif/evas_image_load_gif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/loaders/gif/evas_image_load_gif.c b/src/modules/loaders/gif/evas_image_load_gif.c index 59207f1..504018b 100644 --- a/src/modules/loaders/gif/evas_image_load_gif.c +++ b/src/modules/loaders/gif/evas_image_load_gif.c @@ -380,8 +380,8 @@ _evas_image_load_frame(Image_Entry *ie, GifFileType *gif, Image_Entry_Frame *fra if ((!gif) || (!frame)) return EINA_FALSE; gif_frame = (Gif_Frame *) frame->info; - if (LOAD_FRAME_NONE < type) return EINA_FALSE; - + if (type > LOAD_FRAME_DATA_INFO) return EINA_FALSE; + do { if (DGifGetRecordType(gif, &rec) == GIF_ERROR) return EINA_FALSE; -- 2.7.4