On Wed, Apr 15, 2020 at 4:00 PM Eli Zaretskii wrote: > Could you perhaps step with a debugger through w32_select_active_frame > and see if this call: > > status = GdipImageGetFrameCount (pBitmap, &pDimensionIDs[0], &frameCount); > > returns a value of 'status' that is something other than 'Ok'? It > returns Win32Error here, for some reason. Thread 1 hit Breakpoint 2, w32_select_active_frame (pBitmap=0xf522f0, frame=0, nframes=nframes@entry=0xbfcdbc, delay=delay@entry=0xbfcdc0) at w32image.c:235 235 { (gdb) n 240 status = GdipImageGetFrameDimensionsCount (pBitmap, &count); (gdb) n 241 frameCount = *nframes = 0; (gdb) n 242 *delay = 0.0; (gdb) n 243 if (count) (gdb) n 245 status = GdipImageGetFrameDimensionsList (pBitmap, pDimensionIDs, 1); (gdb) n 246 status = GdipImageGetFrameCount (pBitmap, &pDimensionIDs[0], &frameCount); (gdb) n 247 if (status == Ok && frameCount > 1) (gdb) p status $2 = Ok (gdb)