From cfd93716efd74fcddf4391307a9e66af2eb01345 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Tue, 26 Oct 2021 23:25:12 +0200 Subject: [PATCH] d3d10/effect: Remove interface vs implementation pointer comparsion in buffer variable's IsValid(). Signed-off-by: Nikolay Sivov Signed-off-by: Matteo Bruni Signed-off-by: Alexandre Julliard --- dlls/d3d10/effect.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/d3d10/effect.c b/dlls/d3d10/effect.c index de2be971c9f..e3ca46772dc 100644 --- a/dlls/d3d10/effect.c +++ b/dlls/d3d10/effect.c @@ -4495,9 +4495,11 @@ static inline struct d3d10_effect_variable *impl_from_ID3D10EffectConstantBuffer static BOOL STDMETHODCALLTYPE d3d10_effect_constant_buffer_IsValid(ID3D10EffectConstantBuffer *iface) { - TRACE("iface %p\n", iface); + struct d3d10_effect_variable *v = impl_from_ID3D10EffectConstantBuffer(iface); - return (struct d3d10_effect_variable *)iface != &null_local_buffer; + TRACE("iface %p.\n", iface); + + return v != &null_local_buffer; } static struct ID3D10EffectType * STDMETHODCALLTYPE d3d10_effect_constant_buffer_GetType(ID3D10EffectConstantBuffer *iface)