On Wed, Apr 15, 2020 at 6:59 PM Eli Zaretskii <eliz@gnu.org> wrote:

> Can you see what is the value of propertyItem[0].type?
> I expect it to be 4 or maybe 7, which means the value is a 32-bit
> integer.
>
> And if it is indeed 4 or 7, what does this produce:
>
>   (gdb) p ((int *)propertyItem[frame].value)[0]


Thread 1 hit Breakpoint 2, w32_frame_delay (pBitmap=pBitmap@entry=0x8de22f0,
    frame=frame@entry=0) at w32image.c:205
205     {
(gdb) n
[New Thread 12320.0x50a4]
212       GdipGetPropertyItemSize (pBitmap, PropertyTagFrameDelay, &size);
(gdb) n
[New Thread 12320.0x508c]
215       propertyItem = malloc (size);
(gdb) n
216       if (propertyItem != NULL)
(gdb) n
219           GdipGetPropertyItem (pBitmap, PropertyTagFrameDelay, size, propertyItem);
(gdb) n
220           delay = propertyItem[frame].length / 100.0;
(gdb) p frame
$1 = 0
(gdb) p propertyItem[0].type
$2 = 4
(gdb) p ((int *)propertyItem[0].value)[0]
$3 = 10
(gdb)