d3dx9: Zero constantinfo_reserved on error in get_constants_desc().

Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2017-11-10 10:33:30 +03:00 committed by Alexandre Julliard
parent f6fdcc848d
commit dc96079784
1 changed files with 2 additions and 0 deletions

View File

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