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
2a42410e
Commit
2a42410e
authored
Oct 19, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Oct 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Fix memcpy arguments for matrix transformations (coverity).
parent
30f1a611
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
frame.c
dlls/d3drm/frame.c
+4
-4
No files found.
dlls/d3drm/frame.c
View file @
2a42410e
...
...
@@ -813,7 +813,7 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_GetTransform(IDirect3DRMFrame2* ifac
TRACE
(
"(%p/%p)->(%p)
\n
"
,
iface
,
This
,
return_matrix
);
memcpy
(
&
return_matrix
[
0
][
0
],
&
This
->
transform
[
0
][
0
]
,
sizeof
(
D3DRMMATRIX4D
));
memcpy
(
return_matrix
,
This
->
transform
,
sizeof
(
D3DRMMATRIX4D
));
return
D3DRM_OK
;
}
...
...
@@ -1639,7 +1639,7 @@ static HRESULT WINAPI IDirect3DRMFrame3Impl_AddTransform(IDirect3DRMFrame3* ifac
switch
(
type
)
{
case
D3DRMCOMBINE_REPLACE
:
memcpy
(
&
This
->
transform
[
0
][
0
],
&
matrix
[
0
][
0
]
,
sizeof
(
D3DRMMATRIX4D
));
memcpy
(
This
->
transform
,
matrix
,
sizeof
(
D3DRMMATRIX4D
));
break
;
case
D3DRMCOMBINE_BEFORE
:
...
...
@@ -1905,7 +1905,7 @@ static HRESULT WINAPI IDirect3DRMFrame3Impl_GetTransform(IDirect3DRMFrame3* ifac
if
(
reference
)
FIXME
(
"Specifying a frame as the root of the scene different from the current root frame is not supported yet
\n
"
);
memcpy
(
&
return_matrix
[
0
][
0
],
&
This
->
transform
[
0
][
0
]
,
sizeof
(
D3DRMMATRIX4D
));
memcpy
(
return_matrix
,
This
->
transform
,
sizeof
(
D3DRMMATRIX4D
));
return
D3DRM_OK
;
}
...
...
@@ -2694,7 +2694,7 @@ HRESULT Direct3DRMFrame_create(REFIID riid, IUnknown* parent, IUnknown** ret_ifa
object
->
ref
=
1
;
object
->
scenebackground
=
D3DCOLOR_ARGB
(
0xff
,
0
,
0
,
0
);
memcpy
(
&
object
->
transform
[
0
][
0
],
&
identity
[
0
][
0
]
,
sizeof
(
D3DRMMATRIX4D
));
memcpy
(
object
->
transform
,
identity
,
sizeof
(
D3DRMMATRIX4D
));
if
(
parent
)
{
...
...
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