Commit 880b98bf authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

windowscodecs: GIF Graphic Control Extension block belongs to the image which follows it.

parent 88faba8e
......@@ -885,16 +885,19 @@ DGifSlurp(GifFileType * GifFile) {
case EXTENSION_RECORD_TYPE:
{
int Function;
Extensions *Extensions;
if (GifFile->ImageCount)
if (DGifGetExtension(GifFile, &Function, &ExtData) == GIF_ERROR)
return (GIF_ERROR);
if (GifFile->ImageCount || Function == GRAPHICS_EXT_FUNC_CODE)
Extensions = &temp_save;
else
Extensions = &GifFile->Extensions;
if (DGifGetExtension(GifFile, &Extensions->Function, &ExtData) ==
GIF_ERROR)
return (GIF_ERROR);
Extensions->Function = Function;
while (ExtData != NULL) {
/* Create an extension block with our data */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment