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
ec9a0d85
Commit
ec9a0d85
authored
Sep 24, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 24, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: GdipTransformRegion should not fail for an empty path.
parent
3870e5b2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
region.c
dlls/gdiplus/region.c
+3
-0
region.c
dlls/gdiplus/tests/region.c
+0
-1
No files found.
dlls/gdiplus/region.c
View file @
ec9a0d85
...
@@ -1310,6 +1310,9 @@ static GpStatus transform_region_element(region_element* element, GpMatrix *matr
...
@@ -1310,6 +1310,9 @@ static GpStatus transform_region_element(region_element* element, GpMatrix *matr
}
}
/* Fall-through to do the actual conversion. */
/* Fall-through to do the actual conversion. */
case
RegionDataPath
:
case
RegionDataPath
:
if
(
!
element
->
elementdata
.
pathdata
.
path
->
pathdata
.
Count
)
return
Ok
;
stat
=
GdipTransformMatrixPoints
(
matrix
,
stat
=
GdipTransformMatrixPoints
(
matrix
,
element
->
elementdata
.
pathdata
.
path
->
pathdata
.
Points
,
element
->
elementdata
.
pathdata
.
path
->
pathdata
.
Points
,
element
->
elementdata
.
pathdata
.
path
->
pathdata
.
Count
);
element
->
elementdata
.
pathdata
.
path
->
pathdata
.
Count
);
...
...
dlls/gdiplus/tests/region.c
View file @
ec9a0d85
...
@@ -381,7 +381,6 @@ static void test_getregiondata(void)
...
@@ -381,7 +381,6 @@ static void test_getregiondata(void)
status
=
GdipCreateMatrix
(
&
matrix
);
status
=
GdipCreateMatrix
(
&
matrix
);
expect
(
Ok
,
status
);
expect
(
Ok
,
status
);
status
=
GdipTransformRegion
(
region
,
matrix
);
status
=
GdipTransformRegion
(
region
,
matrix
);
todo_wine
expect
(
Ok
,
status
);
expect
(
Ok
,
status
);
GdipDeleteMatrix
(
matrix
);
GdipDeleteMatrix
(
matrix
);
...
...
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