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

d3d10: Add argument check in ID3D10EffectPass::GetDesc.

parent 247b8679
......@@ -1139,6 +1139,18 @@ static HRESULT STDMETHODCALLTYPE d3d10_effect_pass_GetDesc(ID3D10EffectPass *ifa
FIXME("iface %p, desc %p partial stub!\n", iface, desc);
if(This == &null_pass)
{
WARN("Null pass specified\n");
return E_FAIL;
}
if(!desc)
{
WARN("Invalid argument specified\n");
return E_INVALIDARG;
}
memset(desc, 0, sizeof(*desc));
desc->Name = This->name;
for (i = 0; i < This->object_count; ++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