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
5bd3c916
Commit
5bd3c916
authored
Nov 15, 2011
by
Rico Schüller
Committed by
Alexandre Julliard
Nov 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Improve argument check in ID3DXBaseEffect::GetBool/Int/Float().
parent
9b62668d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
effect.c
dlls/d3dx9_36/effect.c
+3
-3
No files found.
dlls/d3dx9_36/effect.c
View file @
5bd3c916
...
@@ -1640,7 +1640,7 @@ static HRESULT WINAPI ID3DXBaseEffectImpl_GetBool(ID3DXBaseEffect *iface, D3DXHA
...
@@ -1640,7 +1640,7 @@ static HRESULT WINAPI ID3DXBaseEffectImpl_GetBool(ID3DXBaseEffect *iface, D3DXHA
TRACE
(
"iface %p, parameter %p, b %p
\n
"
,
This
,
parameter
,
b
);
TRACE
(
"iface %p, parameter %p, b %p
\n
"
,
This
,
parameter
,
b
);
if
(
b
&&
param
&&
!
param
->
element_count
&&
param
->
class
==
D3DXPC_SCALAR
)
if
(
b
&&
param
&&
!
param
->
element_count
&&
param
->
rows
==
1
&&
param
->
columns
==
1
)
{
{
*
b
=
get_bool
(
param
->
data
);
*
b
=
get_bool
(
param
->
data
);
TRACE
(
"Returning %s
\n
"
,
*
b
?
"TRUE"
:
"FALSE"
);
TRACE
(
"Returning %s
\n
"
,
*
b
?
"TRUE"
:
"FALSE"
);
...
@@ -1703,7 +1703,7 @@ static HRESULT WINAPI ID3DXBaseEffectImpl_GetInt(ID3DXBaseEffect *iface, D3DXHAN
...
@@ -1703,7 +1703,7 @@ static HRESULT WINAPI ID3DXBaseEffectImpl_GetInt(ID3DXBaseEffect *iface, D3DXHAN
TRACE
(
"iface %p, parameter %p, n %p
\n
"
,
This
,
parameter
,
n
);
TRACE
(
"iface %p, parameter %p, n %p
\n
"
,
This
,
parameter
,
n
);
if
(
n
&&
param
&&
!
param
->
element_count
&&
param
->
c
lass
==
D3DXPC_SCALAR
)
if
(
n
&&
param
&&
!
param
->
element_count
&&
param
->
c
olumns
==
1
&&
param
->
rows
==
1
)
{
{
*
n
=
get_int
(
param
->
type
,
param
->
data
);
*
n
=
get_int
(
param
->
type
,
param
->
data
);
TRACE
(
"Returning %i
\n
"
,
*
n
);
TRACE
(
"Returning %i
\n
"
,
*
n
);
...
@@ -1766,7 +1766,7 @@ static HRESULT WINAPI ID3DXBaseEffectImpl_GetFloat(ID3DXBaseEffect *iface, D3DXH
...
@@ -1766,7 +1766,7 @@ static HRESULT WINAPI ID3DXBaseEffectImpl_GetFloat(ID3DXBaseEffect *iface, D3DXH
TRACE
(
"iface %p, parameter %p, f %p
\n
"
,
This
,
parameter
,
f
);
TRACE
(
"iface %p, parameter %p, f %p
\n
"
,
This
,
parameter
,
f
);
if
(
f
&&
param
&&
!
param
->
element_count
&&
param
->
c
lass
==
D3DXPC_SCALAR
)
if
(
f
&&
param
&&
!
param
->
element_count
&&
param
->
c
olumns
==
1
&&
param
->
rows
==
1
)
{
{
*
f
=
get_float
(
param
->
type
,
(
DWORD
*
)
param
->
data
);
*
f
=
get_float
(
param
->
type
,
(
DWORD
*
)
param
->
data
);
TRACE
(
"Returning %f
\n
"
,
*
f
);
TRACE
(
"Returning %f
\n
"
,
*
f
);
...
...
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