From d5717d333b5dd5c647e824b34c6b26889ce46fc9 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 18 Apr 2024 20:00:46 +0200 Subject: [PATCH] vkd3d: Use WIDL_C_INLINE_WRAPPERS. --- libs/vkd3d/device.c | 2 +- libs/vkd3d/resource.c | 2 +- libs/vkd3d/vkd3d_main.c | 2 +- libs/vkd3d/vkd3d_private.h | 3 +++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libs/vkd3d/device.c b/libs/vkd3d/device.c index a394e3f7..13d354a7 100644 --- a/libs/vkd3d/device.c +++ b/libs/vkd3d/device.c @@ -2833,7 +2833,7 @@ static HRESULT STDMETHODCALLTYPE d3d12_device_QueryInterface(ID3D12Device9 *ifac || IsEqualGUID(riid, &IID_ID3D12Object) || IsEqualGUID(riid, &IID_IUnknown)) { - ID3D12Device_AddRef(iface); + ID3D12Device9_AddRef(iface); *object = iface; return S_OK; } diff --git a/libs/vkd3d/resource.c b/libs/vkd3d/resource.c index 17999914..6ee3afa4 100644 --- a/libs/vkd3d/resource.c +++ b/libs/vkd3d/resource.c @@ -1271,7 +1271,7 @@ static HRESULT STDMETHODCALLTYPE d3d12_resource_QueryInterface(ID3D12Resource2 * || IsEqualGUID(riid, &IID_ID3D12Object) || IsEqualGUID(riid, &IID_IUnknown)) { - ID3D12Resource_AddRef(iface); + ID3D12Resource2_AddRef(iface); *object = iface; return S_OK; } diff --git a/libs/vkd3d/vkd3d_main.c b/libs/vkd3d/vkd3d_main.c index 29305fbd..c7431bd8 100644 --- a/libs/vkd3d/vkd3d_main.c +++ b/libs/vkd3d/vkd3d_main.c @@ -71,7 +71,7 @@ HRESULT vkd3d_create_device(const struct vkd3d_device_create_info *create_info, if (!device) { - ID3D12Device_Release(&object->ID3D12Device9_iface); + ID3D12Device9_Release(&object->ID3D12Device9_iface); return S_FALSE; } diff --git a/libs/vkd3d/vkd3d_private.h b/libs/vkd3d/vkd3d_private.h index fa9e1f05..77d95111 100644 --- a/libs/vkd3d/vkd3d_private.h +++ b/libs/vkd3d/vkd3d_private.h @@ -19,6 +19,9 @@ #ifndef __VKD3D_PRIVATE_H #define __VKD3D_PRIVATE_H +#ifndef __MINGW32__ +#define WIDL_C_INLINE_WRAPPERS +#endif #define COBJMACROS #define NONAMELESSUNION #define VK_NO_PROTOTYPES