Commit 3bd0fc3d authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

d3dx9: Avoid using 'This' in d3dx_effect_GetPool().

parent 64b5d6b3
......@@ -3523,9 +3523,9 @@ static HRESULT WINAPI d3dx_effect_SetArrayRange(ID3DXEffect *iface, D3DXHANDLE p
/*** ID3DXEffect methods ***/
static HRESULT WINAPI d3dx_effect_GetPool(ID3DXEffect *iface, ID3DXEffectPool **pool)
{
struct d3dx_effect *This = impl_from_ID3DXEffect(iface);
struct d3dx_effect *effect = impl_from_ID3DXEffect(iface);
TRACE("iface %p, pool %p\n", This, pool);
TRACE("iface %p, pool %p.\n", effect, pool);
if (!pool)
{
......@@ -3533,14 +3533,14 @@ static HRESULT WINAPI d3dx_effect_GetPool(ID3DXEffect *iface, ID3DXEffectPool **
return D3DERR_INVALIDCALL;
}
if (This->pool)
*pool = NULL;
if (effect->pool)
{
This->pool->lpVtbl->AddRef(This->pool);
*pool = effect->pool;
(*pool)->lpVtbl->AddRef(*pool);
}
*pool = This->pool;
TRACE("Returning pool %p\n", *pool);
TRACE("Returning pool %p.\n", *pool);
return S_OK;
}
......
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