Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f0392c77
Commit
f0392c77
authored
Jul 14, 2011
by
Marcus Meissner
Committed by
Alexandre Julliard
Jul 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Check return values of GdipCreateMatrix(2) (Coverity).
parent
a05ba2b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
graphics.c
dlls/gdiplus/tests/graphics.c
+10
-5
No files found.
dlls/gdiplus/tests/graphics.c
View file @
f0392c77
...
...
@@ -546,8 +546,9 @@ static void test_BeginContainer2(void)
status
=
GdipBeginContainer2
(
graphics
,
&
cont1
);
expect
(
Ok
,
status
);
GdipCreateMatrix2
(
defTrans
[
0
],
defTrans
[
1
],
defTrans
[
2
],
defTrans
[
3
],
status
=
GdipCreateMatrix2
(
defTrans
[
0
],
defTrans
[
1
],
defTrans
[
2
],
defTrans
[
3
],
defTrans
[
4
],
defTrans
[
5
],
&
transform
);
expect
(
Ok
,
status
);
GdipSetWorldTransform
(
graphics
,
transform
);
GdipDeleteMatrix
(
transform
);
transform
=
NULL
;
...
...
@@ -555,7 +556,8 @@ static void test_BeginContainer2(void)
status
=
GdipBeginContainer2
(
graphics
,
&
cont2
);
expect
(
Ok
,
status
);
GdipCreateMatrix2
(
10
,
20
,
30
,
40
,
50
,
60
,
&
transform
);
status
=
GdipCreateMatrix2
(
10
,
20
,
30
,
40
,
50
,
60
,
&
transform
);
expect
(
Ok
,
status
);
GdipSetWorldTransform
(
graphics
,
transform
);
GdipDeleteMatrix
(
transform
);
transform
=
NULL
;
...
...
@@ -563,7 +565,8 @@ static void test_BeginContainer2(void)
status
=
GdipEndContainer
(
graphics
,
cont2
);
expect
(
Ok
,
status
);
GdipCreateMatrix
(
&
transform
);
status
=
GdipCreateMatrix
(
&
transform
);
expect
(
Ok
,
status
);
GdipGetWorldTransform
(
graphics
,
transform
);
GdipGetMatrixElements
(
transform
,
elems
);
ok
(
fabs
(
defTrans
[
0
]
-
elems
[
0
])
<
0
.
0001
&&
...
...
@@ -1430,7 +1433,8 @@ static void test_Get_Release_DC(void)
rectf
[
i
].
Width
=
(
REAL
)
rect
[
i
].
Width
;
}
GdipCreateMatrix
(
&
m
);
status
=
GdipCreateMatrix
(
&
m
);
expect
(
Ok
,
status
);
GdipCreateRegion
(
&
region
);
GdipCreateSolidFill
((
ARGB
)
0xdeadbeef
,
&
brush
);
GdipCreatePath
(
FillModeAlternate
,
&
path
);
...
...
@@ -3036,7 +3040,8 @@ static void test_string_functions(void)
for
(
i
=
0
;
i
<
4
;
i
++
)
GdipDeleteRegion
(
regions
[
i
]);
GdipCreateMatrix
(
&
identity
);
status
=
GdipCreateMatrix
(
&
identity
);
expect
(
Ok
,
status
);
position
.
X
=
0
;
position
.
Y
=
0
;
...
...
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