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

d3d10: Improve ID3D10EffectType::GetMemberName().

parent 73b5e3dd
......@@ -3292,12 +3292,21 @@ static struct ID3D10EffectType * STDMETHODCALLTYPE d3d10_effect_type_GetMemberTy
static LPCSTR STDMETHODCALLTYPE d3d10_effect_type_GetMemberName(ID3D10EffectType *iface, UINT index)
{
struct d3d10_effect_type *This = (struct d3d10_effect_type *)iface;
struct d3d10_effect_type_member *typem;
TRACE("iface %p, index %u\n", iface, index);
if(index >= This->member_count) return NULL;
if (index >= This->member_count)
{
WARN("Invalid index specified\n");
return NULL;
}
typem = &This->members[index];
TRACE("Returning name %s\n", debugstr_a(typem->name));
return This->members[index].name;
return typem->name;
}
static LPCSTR STDMETHODCALLTYPE d3d10_effect_type_GetMemberSemantic(ID3D10EffectType *iface, UINT index)
......
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