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
fcb5b6c3
Commit
fcb5b6c3
authored
Apr 18, 2012
by
Rico Schüller
Committed by
Alexandre Julliard
Apr 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Use param->bytes for copying the data in ID3DXBaseEffect::SetValue().
parent
57e49121
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
effect.c
dlls/d3dx9_36/effect.c
+4
-4
No files found.
dlls/d3dx9_36/effect.c
View file @
fcb5b6c3
...
...
@@ -1623,7 +1623,7 @@ static HRESULT WINAPI ID3DXBaseEffectImpl_SetValue(ID3DXBaseEffect *iface, D3DXH
return
E_FAIL
;
}
if
(
data
&&
param
->
bytes
>
=
bytes
)
if
(
data
&&
param
->
bytes
<
=
bytes
)
{
switch
(
param
->
type
)
{
...
...
@@ -1631,8 +1631,8 @@ static HRESULT WINAPI ID3DXBaseEffectImpl_SetValue(ID3DXBaseEffect *iface, D3DXH
case
D3DXPT_BOOL
:
case
D3DXPT_INT
:
case
D3DXPT_FLOAT
:
TRACE
(
"Copy %u bytes
\n
"
,
bytes
);
memcpy
(
param
->
data
,
data
,
bytes
);
TRACE
(
"Copy %u bytes
\n
"
,
param
->
bytes
);
memcpy
(
param
->
data
,
data
,
param
->
bytes
);
break
;
default:
...
...
@@ -3580,7 +3580,7 @@ static HRESULT WINAPI ID3DXEffectImpl_SetStateManager(ID3DXEffect *iface, LPD3DX
TRACE
(
"iface %p, manager %p
\n
"
,
This
,
manager
);
if
(
manager
)
IUnknown_AddRef
(
manager
);
if
(
This
->
manager
)
IUnknown_Release
(
This
->
manager
);
if
(
This
->
manager
)
IUnknown_Release
(
This
->
manager
);
This
->
manager
=
manager
;
...
...
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