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
1f38359e
Commit
1f38359e
authored
May 26, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
May 27, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: Names and semantics are allowed to be NULL (AFL).
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
01f8e55d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
34 deletions
+22
-34
effect.c
dlls/d3d10/effect.c
+22
-34
No files found.
dlls/d3d10/effect.c
View file @
1f38359e
...
...
@@ -2692,7 +2692,7 @@ static struct ID3D10EffectConstantBuffer * STDMETHODCALLTYPE d3d10_effect_GetCon
{
struct
d3d10_effect_variable
*
l
=
&
This
->
local_buffers
[
i
];
if
(
!
strcmp
(
l
->
name
,
name
))
if
(
l
->
name
&&
!
strcmp
(
l
->
name
,
name
))
{
TRACE
(
"Returning buffer %p.
\n
"
,
l
);
return
(
ID3D10EffectConstantBuffer
*
)
l
;
...
...
@@ -2761,7 +2761,7 @@ static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_GetVariableB
{
struct
d3d10_effect_variable
*
v
=
&
l
->
members
[
j
];
if
(
!
strcmp
(
v
->
name
,
name
))
if
(
v
->
name
&&
!
strcmp
(
v
->
name
,
name
))
{
TRACE
(
"Returning variable %p.
\n
"
,
v
);
return
&
v
->
ID3D10EffectVariable_iface
;
...
...
@@ -2773,7 +2773,7 @@ static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_GetVariableB
{
struct
d3d10_effect_variable
*
v
=
&
This
->
local_variables
[
i
];
if
(
!
strcmp
(
v
->
name
,
name
))
if
(
v
->
name
&&
!
strcmp
(
v
->
name
,
name
))
{
TRACE
(
"Returning variable %p.
\n
"
,
v
);
return
&
v
->
ID3D10EffectVariable_iface
;
...
...
@@ -2808,7 +2808,7 @@ static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_GetVariableB
{
struct
d3d10_effect_variable
*
v
=
&
l
->
members
[
j
];
if
(
!
strcmp
(
v
->
semantic
,
semantic
))
if
(
v
->
semantic
&&
!
strcmp
(
v
->
semantic
,
semantic
))
{
TRACE
(
"Returning variable %p.
\n
"
,
v
);
return
&
v
->
ID3D10EffectVariable_iface
;
...
...
@@ -2820,7 +2820,7 @@ static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_GetVariableB
{
struct
d3d10_effect_variable
*
v
=
&
This
->
local_variables
[
i
];
if
(
!
strcmp
(
v
->
semantic
,
semantic
))
if
(
v
->
semantic
&&
!
strcmp
(
v
->
semantic
,
semantic
))
{
TRACE
(
"Returning variable %p.
\n
"
,
v
);
return
&
v
->
ID3D10EffectVariable_iface
;
...
...
@@ -2870,7 +2870,7 @@ static struct ID3D10EffectTechnique * STDMETHODCALLTYPE d3d10_effect_GetTechniqu
for
(
i
=
0
;
i
<
This
->
technique_count
;
++
i
)
{
struct
d3d10_effect_technique
*
t
=
&
This
->
techniques
[
i
];
if
(
!
strcmp
(
t
->
name
,
name
))
if
(
t
->
name
&&
!
strcmp
(
t
->
name
,
name
))
{
TRACE
(
"Returning technique %p
\n
"
,
t
);
return
&
t
->
ID3D10EffectTechnique_iface
;
...
...
@@ -2992,7 +2992,7 @@ static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_technique_Ge
for
(
i
=
0
;
i
<
This
->
annotation_count
;
++
i
)
{
struct
d3d10_effect_variable
*
a
=
&
This
->
annotations
[
i
];
if
(
!
strcmp
(
a
->
name
,
name
))
if
(
a
->
name
&&
!
strcmp
(
a
->
name
,
name
))
{
TRACE
(
"Returning annotation %p
\n
"
,
a
);
return
&
a
->
ID3D10EffectVariable_iface
;
...
...
@@ -3038,7 +3038,7 @@ static struct ID3D10EffectPass * STDMETHODCALLTYPE d3d10_effect_technique_GetPas
for
(
i
=
0
;
i
<
This
->
pass_count
;
++
i
)
{
struct
d3d10_effect_pass
*
p
=
&
This
->
passes
[
i
];
if
(
!
strcmp
(
p
->
name
,
name
))
if
(
p
->
name
&&
!
strcmp
(
p
->
name
,
name
))
{
TRACE
(
"Returning pass %p
\n
"
,
p
);
return
&
p
->
ID3D10EffectPass_iface
;
...
...
@@ -3224,7 +3224,7 @@ static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_pass_GetAnno
for
(
i
=
0
;
i
<
This
->
annotation_count
;
++
i
)
{
struct
d3d10_effect_variable
*
a
=
&
This
->
annotations
[
i
];
if
(
!
strcmp
(
a
->
name
,
name
))
if
(
a
->
name
&&
!
strcmp
(
a
->
name
,
name
))
{
TRACE
(
"Returning annotation %p
\n
"
,
a
);
return
&
a
->
ID3D10EffectVariable_iface
;
...
...
@@ -3362,7 +3362,7 @@ static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_variable_Get
for
(
i
=
0
;
i
<
This
->
annotation_count
;
++
i
)
{
struct
d3d10_effect_variable
*
a
=
&
This
->
annotations
[
i
];
if
(
!
strcmp
(
a
->
name
,
name
))
if
(
a
->
name
&&
!
strcmp
(
a
->
name
,
name
))
{
TRACE
(
"Returning annotation %p
\n
"
,
a
);
return
&
a
->
ID3D10EffectVariable_iface
;
...
...
@@ -3413,13 +3413,10 @@ static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_variable_Get
{
struct
d3d10_effect_variable
*
m
=
&
This
->
members
[
i
];
if
(
m
->
name
)
if
(
m
->
name
&&
!
strcmp
(
m
->
name
,
name
)
)
{
if
(
!
strcmp
(
m
->
name
,
name
))
{
TRACE
(
"Returning member %p
\n
"
,
m
);
return
&
m
->
ID3D10EffectVariable_iface
;
}
TRACE
(
"Returning member %p
\n
"
,
m
);
return
&
m
->
ID3D10EffectVariable_iface
;
}
}
...
...
@@ -3446,13 +3443,10 @@ static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_variable_Get
{
struct
d3d10_effect_variable
*
m
=
&
This
->
members
[
i
];
if
(
m
->
semantic
)
if
(
m
->
semantic
&&
!
strcmp
(
m
->
semantic
,
semantic
)
)
{
if
(
!
strcmp
(
m
->
semantic
,
semantic
))
{
TRACE
(
"Returning member %p
\n
"
,
m
);
return
&
m
->
ID3D10EffectVariable_iface
;
}
TRACE
(
"Returning member %p
\n
"
,
m
);
return
&
m
->
ID3D10EffectVariable_iface
;
}
}
...
...
@@ -7049,13 +7043,10 @@ static struct ID3D10EffectType * STDMETHODCALLTYPE d3d10_effect_type_GetMemberTy
{
struct
d3d10_effect_type_member
*
typem
=
&
This
->
members
[
i
];
if
(
typem
->
name
)
if
(
typem
->
name
&&
!
strcmp
(
typem
->
name
,
name
)
)
{
if
(
!
strcmp
(
typem
->
name
,
name
))
{
TRACE
(
"Returning type %p.
\n
"
,
typem
->
type
);
return
&
typem
->
type
->
ID3D10EffectType_iface
;
}
TRACE
(
"Returning type %p.
\n
"
,
typem
->
type
);
return
&
typem
->
type
->
ID3D10EffectType_iface
;
}
}
...
...
@@ -7082,13 +7073,10 @@ static struct ID3D10EffectType * STDMETHODCALLTYPE d3d10_effect_type_GetMemberTy
{
struct
d3d10_effect_type_member
*
typem
=
&
This
->
members
[
i
];
if
(
typem
->
semantic
)
if
(
typem
->
semantic
&&
!
strcmp
(
typem
->
semantic
,
semantic
)
)
{
if
(
!
strcmp
(
typem
->
semantic
,
semantic
))
{
TRACE
(
"Returning type %p.
\n
"
,
typem
->
type
);
return
&
typem
->
type
->
ID3D10EffectType_iface
;
}
TRACE
(
"Returning type %p.
\n
"
,
typem
->
type
);
return
&
typem
->
type
->
ID3D10EffectType_iface
;
}
}
...
...
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