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
55a4be12
Commit
55a4be12
authored
Jul 24, 2013
by
Rico Schüller
Committed by
Alexandre Julliard
Jul 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Fix initialization of D3DXPC_OBJECTs.
parent
b6fc57ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
effect.c
dlls/d3dx9_36/effect.c
+19
-3
No files found.
dlls/d3dx9_36/effect.c
View file @
55a4be12
...
...
@@ -4637,15 +4637,31 @@ static HRESULT d3dx9_parse_init_value(struct d3dx_parameter *param, const char *
if
(
size
)
{
value
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
value
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
size
);
if
(
!
value
)
{
ERR
(
"Failed to allocate data memory.
\n
"
);
return
E_OUTOFMEMORY
;
}
TRACE
(
"Data: %s.
\n
"
,
debugstr_an
(
ptr
,
size
));
memcpy
(
value
,
ptr
,
size
);
switch
(
param
->
class
)
{
case
D3DXPC_OBJECT
:
break
;
case
D3DXPC_SCALAR
:
case
D3DXPC_VECTOR
:
case
D3DXPC_MATRIX_ROWS
:
case
D3DXPC_MATRIX_COLUMNS
:
case
D3DXPC_STRUCT
:
TRACE
(
"Data: %s.
\n
"
,
debugstr_an
(
ptr
,
size
));
memcpy
(
value
,
ptr
,
size
);
break
;
default:
FIXME
(
"Unhandled class %s
\n
"
,
debug_d3dxparameter_class
(
param
->
class
));
break
;
}
}
hr
=
d3dx9_parse_value
(
param
,
value
,
data
,
&
ptr
,
objects
);
...
...
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