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

d3d10: Add argument check in ID3D10EffectTechnique::GetDesc.

parent 78741d27
...@@ -1023,6 +1023,18 @@ static HRESULT STDMETHODCALLTYPE d3d10_effect_technique_GetDesc(ID3D10EffectTech ...@@ -1023,6 +1023,18 @@ static HRESULT STDMETHODCALLTYPE d3d10_effect_technique_GetDesc(ID3D10EffectTech
TRACE("iface %p, desc %p\n", iface, desc); TRACE("iface %p, desc %p\n", iface, desc);
if(This == &null_technique)
{
WARN("Null technique specified\n");
return E_FAIL;
}
if(!desc)
{
WARN("Invalid argument specified\n");
return E_INVALIDARG;
}
desc->Name = This->name; desc->Name = This->name;
desc->Passes = This->pass_count; desc->Passes = This->pass_count;
WARN("Annotations not implemented\n"); WARN("Annotations not implemented\n");
......
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