Commit e7b4e883 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

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

parent 408972cb
......@@ -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)
{
......
......@@ -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);
}
......
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