Commit dc960797 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

d3dx9: Zero constantinfo_reserved on error in get_constants_desc().

parent f6fdcc84
......@@ -539,6 +539,8 @@ static HRESULT get_ctab_constant_desc(ID3DXConstantTable *ctab, D3DXHANDLE hc, D
if (!constant)
{
FIXME("Could not get constant desc.\n");
if (constantinfo_reserved)
*constantinfo_reserved = 0;
return D3DERR_INVALIDCALL;
}
*desc = constant->desc;
......
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