vkd3d: Use WIDL_C_INLINE_WRAPPERS.

This commit is contained in:
Henri Verbeet 2024-04-18 20:00:46 +02:00 committed by Alexandre Julliard
parent 075979fa21
commit d5717d333b
Notes: Alexandre Julliard 2024-04-25 00:14:58 +02:00
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/830
4 changed files with 6 additions and 3 deletions

View File

@ -2833,7 +2833,7 @@ static HRESULT STDMETHODCALLTYPE d3d12_device_QueryInterface(ID3D12Device9 *ifac
|| IsEqualGUID(riid, &IID_ID3D12Object) || IsEqualGUID(riid, &IID_ID3D12Object)
|| IsEqualGUID(riid, &IID_IUnknown)) || IsEqualGUID(riid, &IID_IUnknown))
{ {
ID3D12Device_AddRef(iface); ID3D12Device9_AddRef(iface);
*object = iface; *object = iface;
return S_OK; return S_OK;
} }

View File

@ -1271,7 +1271,7 @@ static HRESULT STDMETHODCALLTYPE d3d12_resource_QueryInterface(ID3D12Resource2 *
|| IsEqualGUID(riid, &IID_ID3D12Object) || IsEqualGUID(riid, &IID_ID3D12Object)
|| IsEqualGUID(riid, &IID_IUnknown)) || IsEqualGUID(riid, &IID_IUnknown))
{ {
ID3D12Resource_AddRef(iface); ID3D12Resource2_AddRef(iface);
*object = iface; *object = iface;
return S_OK; return S_OK;
} }

View File

@ -71,7 +71,7 @@ HRESULT vkd3d_create_device(const struct vkd3d_device_create_info *create_info,
if (!device) if (!device)
{ {
ID3D12Device_Release(&object->ID3D12Device9_iface); ID3D12Device9_Release(&object->ID3D12Device9_iface);
return S_FALSE; return S_FALSE;
} }

View File

@ -19,6 +19,9 @@
#ifndef __VKD3D_PRIVATE_H #ifndef __VKD3D_PRIVATE_H
#define __VKD3D_PRIVATE_H #define __VKD3D_PRIVATE_H
#ifndef __MINGW32__
#define WIDL_C_INLINE_WRAPPERS
#endif
#define COBJMACROS #define COBJMACROS
#define NONAMELESSUNION #define NONAMELESSUNION
#define VK_NO_PROTOTYPES #define VK_NO_PROTOTYPES