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
0726542d
Commit
0726542d
authored
Oct 30, 2014
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Pass the correct pointer to IDirectXFileData_GetData (PVS-Studio).
Also remove an uneeded initialization of "size" as that is purely an [OUT] parameter.
parent
dd923c30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
d3drm.c
dlls/d3drm/d3drm.c
+3
-4
No files found.
dlls/d3drm/d3drm.c
View file @
0726542d
...
...
@@ -1240,17 +1240,16 @@ static HRESULT load_data(IDirect3DRM3 *iface, IDirectXFileData *data_object, IID
/* Cannot be requested */
if
(
parent_frame
)
{
D3DRMMATRIX4D
matrix
;
D3DRMMATRIX4D
*
matrix
;
DWORD
size
;
TRACE
(
"Load Frame Transform Matrix data
\n
"
);
size
=
sizeof
(
matrix
);
hr
=
IDirectXFileData_GetData
(
data_object
,
NULL
,
&
size
,
(
void
**
)
matrix
);
hr
=
IDirectXFileData_GetData
(
data_object
,
NULL
,
&
size
,
(
void
**
)
&
matrix
);
if
((
hr
!=
DXFILE_OK
)
||
(
size
!=
sizeof
(
matrix
)))
goto
end
;
hr
=
IDirect3DRMFrame3_AddTransform
(
parent_frame
,
D3DRMCOMBINE_REPLACE
,
matrix
);
hr
=
IDirect3DRMFrame3_AddTransform
(
parent_frame
,
D3DRMCOMBINE_REPLACE
,
*
matrix
);
if
(
FAILED
(
hr
))
goto
end
;
}
...
...
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