From 886c1fdcc41e730e1116a15894cdbe5fa822163b Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 29 Jan 2024 17:25:32 +0100 Subject: [PATCH] vkd3d: Use vkd3d_atomic_decrement_u32() in d3d12_resource_Release(). --- libs/vkd3d/resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/vkd3d/resource.c b/libs/vkd3d/resource.c index 9da9d19a..e95c90dc 100644 --- a/libs/vkd3d/resource.c +++ b/libs/vkd3d/resource.c @@ -1302,7 +1302,7 @@ static ULONG STDMETHODCALLTYPE d3d12_resource_AddRef(ID3D12Resource1 *iface) static ULONG STDMETHODCALLTYPE d3d12_resource_Release(ID3D12Resource1 *iface) { struct d3d12_resource *resource = impl_from_ID3D12Resource1(iface); - unsigned int refcount = InterlockedDecrement((LONG *)&resource->refcount); + unsigned int refcount = vkd3d_atomic_decrement_u32(&resource->refcount); TRACE("%p decreasing refcount to %u.\n", resource, refcount);