d3d10: Add argument check in ID3D10EffectPass::GetDesc.

This commit is contained in:
Rico Schüller 2009-08-29 20:36:38 +02:00 committed by Alexandre Julliard
parent 247b867952
commit 45c27e12d4
1 changed files with 12 additions and 0 deletions

View File

@ -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)