gdiplus: In GdipImageSelectActiveFrame rely on codec->select_func() to fail.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
This commit is contained in:
parent
408972cb4d
commit
e7b4e883d1
2 changed files with 2 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue