vkd3d: Use vkd3d_atomic_decrement_u32() in d3d12_query_heap_Release().

This commit is contained in:
Henri Verbeet 2024-01-29 17:34:15 +01:00 committed by Alexandre Julliard
parent d66f61cd5f
commit 920f5293e9
Notes: Alexandre Julliard 2024-02-01 00:32:06 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/619

View File

@ -4439,7 +4439,7 @@ static ULONG STDMETHODCALLTYPE d3d12_query_heap_AddRef(ID3D12QueryHeap *iface)
static ULONG STDMETHODCALLTYPE d3d12_query_heap_Release(ID3D12QueryHeap *iface)
{
struct d3d12_query_heap *heap = impl_from_ID3D12QueryHeap(iface);
unsigned int refcount = InterlockedDecrement((LONG *)&heap->refcount);
unsigned int refcount = vkd3d_atomic_decrement_u32(&heap->refcount);
TRACE("%p decreasing refcount to %u.\n", heap, refcount);