diff -wbBur ziproxy-3.3.0/src/image.c ziproxy-3.3.0.my/src/image.c --- ziproxy-3.3.0/src/image.c 2013-01-04 20:48:50.000000000 +0400 +++ ziproxy-3.3.0.my/src/image.c 2014-05-29 18:52:52.980657105 +0400 @@ -93,6 +93,10 @@ #define MIN_INSIZE_TO_JPEG 600 #define MIN_INSIZE_TO_JP2K 800 + +#define false 0 +#define true !!0 + //Forwards. There are more utility functions, but they're used only once. static raw_bitmap *new_raw_bitmap(); @@ -905,7 +909,7 @@ desc.size=insize; desc.x.pos=0; - if ((GifFile = DGifOpen((void*)&desc, &gif_mem_input)) == NULL) + if ((GifFile = DGifOpen((void*)&desc, &gif_mem_input, NULL)) == NULL) return( IMG_RET_ERR_UNKNOWN + IMG_RET_FLG_WHILE_DECOMP);//more possible reasons bmp = new_raw_bitmap(); @@ -1083,7 +1087,7 @@ } bmp->pal_bpp = bmp->bpp; - DGifCloseFile(GifFile); + DGifCloseFile(GifFile, NULL); return IMG_RET_OK; }