2017-01-22 23:32:42 +01:00
|
|
|
diff -wbBur xplanet-1.3.1/src/libimage/gif.c xplanet-1.3.1.q/src/libimage/gif.c
|
|
|
|
--- xplanet-1.3.1/src/libimage/gif.c 2013-02-16 23:37:47.000000000 +0400
|
|
|
|
+++ xplanet-1.3.1.q/src/libimage/gif.c 2016-03-14 17:41:14.244144734 +0300
|
|
|
|
@@ -179,7 +179,7 @@
|
|
|
|
}
|
2015-06-25 14:31:18 +02:00
|
|
|
}
|
|
|
|
|
2017-01-22 23:32:42 +01:00
|
|
|
- if (DGifCloseFile(GifFile) == GIF_ERROR) {
|
|
|
|
+ if (DGifCloseFile(GifFile, NULL) == GIF_ERROR) {
|
|
|
|
return(0);
|
2015-06-25 14:31:18 +02:00
|
|
|
}
|
|
|
|
|
2017-01-22 23:32:42 +01:00
|
|
|
@@ -493,7 +493,7 @@
|
|
|
|
static void QuitGifError(GifFileType *GifFile)
|
|
|
|
{
|
|
|
|
fprintf(stderr, "Error writing GIF file\n");
|
|
|
|
- if (GifFile != NULL) EGifCloseFile(GifFile);
|
|
|
|
+ if (GifFile != NULL) EGifCloseFile(GifFile, NULL);
|
|
|
|
}
|
2015-06-25 14:31:18 +02:00
|
|
|
|
2017-01-22 23:32:42 +01:00
|
|
|
int
|
|
|
|
@@ -589,7 +589,7 @@
|
|
|
|
Ptr += width;
|
2015-06-25 14:31:18 +02:00
|
|
|
}
|
|
|
|
|
2017-01-22 23:32:42 +01:00
|
|
|
- if (EGifCloseFile(GifFile) == GIF_ERROR)
|
|
|
|
+ if (EGifCloseFile(GifFile, NULL) == GIF_ERROR)
|
2015-06-25 14:31:18 +02:00
|
|
|
|
|
|
|
{
|
2017-01-22 23:32:42 +01:00
|
|
|
QuitGifError(GifFile);
|