vkd3d: Use vkd3d_atomic_decrement_u32() in d3d12_fence_Release().

This commit is contained in:
Henri Verbeet 2024-01-11 20:24:17 +01:00 committed by Alexandre Julliard
parent 5a2b82fbd5
commit 1b4f1ac8a0
Notes: Alexandre Julliard 2024-01-25 23:12:08 +01:00
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/605

View File

@ -941,7 +941,7 @@ static void d3d12_fence_incref(struct d3d12_fence *fence)
static ULONG STDMETHODCALLTYPE d3d12_fence_Release(ID3D12Fence1 *iface) static ULONG STDMETHODCALLTYPE d3d12_fence_Release(ID3D12Fence1 *iface)
{ {
struct d3d12_fence *fence = impl_from_ID3D12Fence1(iface); struct d3d12_fence *fence = impl_from_ID3D12Fence1(iface);
ULONG refcount = InterlockedDecrement((LONG *)&fence->refcount); unsigned int refcount = vkd3d_atomic_decrement_u32(&fence->refcount);
TRACE("%p decreasing refcount to %u.\n", fence, refcount); TRACE("%p decreasing refcount to %u.\n", fence, refcount);