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
6972aa77
Commit
6972aa77
authored
Oct 26, 2023
by
Jeff Smith
Committed by
Alexandre Julliard
Oct 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Fix GdipSetPageUnit parameter validation.
parent
8f7749aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
graphics.c
dlls/gdiplus/graphics.c
+1
-1
graphics.c
dlls/gdiplus/tests/graphics.c
+0
-2
No files found.
dlls/gdiplus/graphics.c
View file @
6972aa77
...
...
@@ -6197,7 +6197,7 @@ GpStatus WINGDIPAPI GdipSetPageUnit(GpGraphics *graphics, GpUnit unit)
if
(
graphics
->
busy
)
return
ObjectBusy
;
if
(
unit
==
UnitWorld
)
if
(
unit
==
UnitWorld
||
unit
>
UnitMillimeter
)
return
InvalidParameter
;
if
(
is_metafile_graphics
(
graphics
))
...
...
dlls/gdiplus/tests/graphics.c
View file @
6972aa77
...
...
@@ -4104,7 +4104,6 @@ static void test_set_page_transform(void)
{
winetest_push_context
(
"%u"
,
i
);
status
=
GdipSetPageUnit
(
graphics
,
td_unit
[
i
].
unit
);
todo_wine_if
(
td_unit
[
i
].
unit
>
UnitMillimeter
)
expect
(
td_unit
[
i
].
isInvalid
?
InvalidParameter
:
Ok
,
status
);
if
(
status
==
Ok
)
{
...
...
@@ -4131,7 +4130,6 @@ static void test_set_page_transform(void)
status
=
GdipGetPageUnit
(
graphics
,
&
unit
);
expect
(
Ok
,
status
);
todo_wine
expect
(
UnitMillimeter
,
unit
);
status
=
GdipGetPageScale
(
graphics
,
&
scale
);
expect
(
Ok
,
status
);
...
...
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