Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e7b4e883
Commit
e7b4e883
authored
Mar 23, 2023
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: In GdipImageSelectActiveFrame rely on codec->select_func() to fail.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
parent
408972cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
image.c
dlls/gdiplus/image.c
+1
-4
image.c
dlls/gdiplus/tests/image.c
+1
-1
No files found.
dlls/gdiplus/image.c
View file @
e7b4e883
...
@@ -4553,11 +4553,8 @@ GpStatus WINGDIPAPI GdipImageSelectActiveFrame(GpImage *image, GDIPCONST GUID *d
...
@@ -4553,11 +4553,8 @@ GpStatus WINGDIPAPI GdipImageSelectActiveFrame(GpImage *image, GDIPCONST GUID *d
return
ObjectBusy
;
return
ObjectBusy
;
if
(
frame
>=
image
->
frame_count
)
if
(
frame
>=
image
->
frame_count
)
{
WARN
(
"requested frame %u, but image has only %u
\n
"
,
frame
,
image
->
frame_count
);
WARN
(
"requested frame %u, but image has only %u
\n
"
,
frame
,
image
->
frame_count
);
image_unlock
(
image
);
/* rely on codec->select_func() to fail */
return
InvalidParameter
;
}
if
(
image
->
type
!=
ImageTypeBitmap
&&
image
->
type
!=
ImageTypeMetafile
)
if
(
image
->
type
!=
ImageTypeBitmap
&&
image
->
type
!=
ImageTypeMetafile
)
{
{
...
...
dlls/gdiplus/tests/image.c
View file @
e7b4e883
...
@@ -471,7 +471,7 @@ static void test_GdipImageGetFrameDimensionsCount(void)
...
@@ -471,7 +471,7 @@ static void test_GdipImageGetFrameDimensionsCount(void)
expect
(
0xffffffff
,
color
);
expect
(
0xffffffff
,
color
);
stat
=
GdipImageSelectActiveFrame
((
GpImage
*
)
bm
,
&
dimension
,
1
);
stat
=
GdipImageSelectActiveFrame
((
GpImage
*
)
bm
,
&
dimension
,
1
);
todo_wine
expect
(
Ok
,
stat
);
expect
(
Ok
,
stat
);
GdipDisposeImage
((
GpImage
*
)
bm
);
GdipDisposeImage
((
GpImage
*
)
bm
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment