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
14f925d5
Commit
14f925d5
authored
Apr 06, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Apr 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Validate MatrixOrder in matrix functions.
parent
08f8f508
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
matrix.c
dlls/gdiplus/matrix.c
+15
-5
No files found.
dlls/gdiplus/matrix.c
View file @
14f925d5
...
...
@@ -231,8 +231,10 @@ GpStatus WINGDIPAPI GdipMultiplyMatrix(GpMatrix *matrix, GDIPCONST GpMatrix* mat
if
(
order
==
MatrixOrderAppend
)
matrix_multiply
(
matrix
->
matrix
,
matrix2
->
matrix
,
matrix
->
matrix
);
else
else
if
(
order
==
MatrixOrderPrepend
)
matrix_multiply
(
matrix2
->
matrix
,
matrix
->
matrix
,
matrix
->
matrix
);
else
return
InvalidParameter
;
return
Ok
;
}
...
...
@@ -260,8 +262,10 @@ GpStatus WINGDIPAPI GdipRotateMatrix(GpMatrix *matrix, REAL angle,
if
(
order
==
MatrixOrderAppend
)
matrix_multiply
(
matrix
->
matrix
,
rotate
,
matrix
->
matrix
);
else
else
if
(
order
==
MatrixOrderPrepend
)
matrix_multiply
(
rotate
,
matrix
->
matrix
,
matrix
->
matrix
);
else
return
InvalidParameter
;
return
Ok
;
}
...
...
@@ -285,8 +289,10 @@ GpStatus WINGDIPAPI GdipScaleMatrix(GpMatrix *matrix, REAL scaleX, REAL scaleY,
if
(
order
==
MatrixOrderAppend
)
matrix_multiply
(
matrix
->
matrix
,
scale
,
matrix
->
matrix
);
else
else
if
(
order
==
MatrixOrderPrepend
)
matrix_multiply
(
scale
,
matrix
->
matrix
,
matrix
->
matrix
);
else
return
InvalidParameter
;
return
Ok
;
}
...
...
@@ -330,8 +336,10 @@ GpStatus WINGDIPAPI GdipShearMatrix(GpMatrix *matrix, REAL shearX, REAL shearY,
if
(
order
==
MatrixOrderAppend
)
matrix_multiply
(
matrix
->
matrix
,
shear
,
matrix
->
matrix
);
else
else
if
(
order
==
MatrixOrderPrepend
)
matrix_multiply
(
shear
,
matrix
->
matrix
,
matrix
->
matrix
);
else
return
InvalidParameter
;
return
Ok
;
}
...
...
@@ -410,8 +418,10 @@ GpStatus WINGDIPAPI GdipTranslateMatrix(GpMatrix *matrix, REAL offsetX,
if
(
order
==
MatrixOrderAppend
)
matrix_multiply
(
matrix
->
matrix
,
translate
,
matrix
->
matrix
);
else
else
if
(
order
==
MatrixOrderPrepend
)
matrix_multiply
(
translate
,
matrix
->
matrix
,
matrix
->
matrix
);
else
return
InvalidParameter
;
return
Ok
;
}
...
...
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