d3d10: Add argument check in ID3D10Effect::GetVariableByName().
This commit is contained in:
parent
337c5d2730
commit
b0b9897f9f
|
@ -2184,6 +2184,12 @@ static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_GetVariableB
|
|||
|
||||
TRACE("iface %p, name %s.\n", iface, debugstr_a(name));
|
||||
|
||||
if (!name)
|
||||
{
|
||||
WARN("Invalid name specified\n");
|
||||
return (ID3D10EffectVariable *)&null_variable;
|
||||
}
|
||||
|
||||
for (i = 0; i < This->local_buffer_count; ++i)
|
||||
{
|
||||
struct d3d10_effect_variable *l = &This->local_buffers[i];
|
||||
|
|
Loading…
Reference in New Issue