From 534044181b50f45a6e6e72dbc4b4c56788dcf619 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 18 Apr 2024 20:02:50 +0200 Subject: [PATCH] vkd3d-utils: Use WIDL_C_INLINE_WRAPPERS. --- libs/vkd3d-utils/reflection.c | 2 +- libs/vkd3d-utils/vkd3d_utils_private.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/vkd3d-utils/reflection.c b/libs/vkd3d-utils/reflection.c index 920cc371..f4cc78bc 100644 --- a/libs/vkd3d-utils/reflection.c +++ b/libs/vkd3d-utils/reflection.c @@ -340,7 +340,7 @@ static HRESULT STDMETHODCALLTYPE d3d12_reflection_QueryInterface( if (IsEqualGUID(riid, &IID_ID3D12ShaderReflection) || IsEqualGUID(riid, &IID_IUnknown)) { - IUnknown_AddRef(iface); + ID3D12ShaderReflection_AddRef(iface); *object = iface; return S_OK; } diff --git a/libs/vkd3d-utils/vkd3d_utils_private.h b/libs/vkd3d-utils/vkd3d_utils_private.h index 7fece3d6..84f7372e 100644 --- a/libs/vkd3d-utils/vkd3d_utils_private.h +++ b/libs/vkd3d-utils/vkd3d_utils_private.h @@ -19,6 +19,9 @@ #ifndef __VKD3D_UTILS_PRIVATE_H #define __VKD3D_UTILS_PRIVATE_H +#ifndef __MINGW32__ +#define WIDL_C_INLINE_WRAPPERS +#endif #define COBJMACROS #define NONAMELESSUNION #define VK_NO_PROTOTYPES