Commit b0b9897f authored by Rico Schüller's avatar Rico Schüller Committed by Alexandre Julliard

d3d10: Add argument check in ID3D10Effect::GetVariableByName().

parent 337c5d27
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment