From 201fab7d5df3867cdbbb3e145ff832efefb2a230 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 29 Jan 2024 17:19:30 +0100 Subject: [PATCH] vkd3d: Use vkd3d_atomic_decrement_u32() in d3d12_resource_decref(). --- 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 f607b178..c44f3ef6 100644 --- a/libs/vkd3d/resource.c +++ b/libs/vkd3d/resource.c @@ -1012,7 +1012,7 @@ static ULONG d3d12_resource_incref(struct d3d12_resource *resource) static ULONG d3d12_resource_decref(struct d3d12_resource *resource) { - unsigned int refcount = InterlockedDecrement((LONG *)&resource->internal_refcount); + unsigned int refcount = vkd3d_atomic_decrement_u32(&resource->internal_refcount); TRACE("%p decreasing refcount to %u.\n", resource, refcount);