gdiplus: In GdipImageSelectActiveFrame rely on codec->select_func() to fail.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
This commit is contained in:
Dmitry Timoshkov 2023-03-23 19:51:17 +03:00 committed by Alexandre Julliard
parent 408972cb4d
commit e7b4e883d1
2 changed files with 2 additions and 5 deletions

View file

@ -4553,11 +4553,8 @@ GpStatus WINGDIPAPI GdipImageSelectActiveFrame(GpImage *image, GDIPCONST GUID *d
return ObjectBusy;
if (frame >= image->frame_count)
{
WARN("requested frame %u, but image has only %u\n", frame, image->frame_count);
image_unlock(image);
return InvalidParameter;
}
/* rely on codec->select_func() to fail */
if (image->type != ImageTypeBitmap && image->type != ImageTypeMetafile)
{

View file

@ -471,7 +471,7 @@ static void test_GdipImageGetFrameDimensionsCount(void)
expect(0xffffffff, color);
stat = GdipImageSelectActiveFrame((GpImage*)bm, &dimension, 1);
todo_wine expect(Ok, stat);
expect(Ok, stat);
GdipDisposeImage((GpImage*)bm);
}