From 9e135f6143925294bd7426aa7b25f562279c53cb Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Tue, 23 Jan 2024 18:18:05 +0100 Subject: [PATCH] vkd3d: Use vkd3d_atomic_decrement_u32() in d3d12_root_signature_Release(). --- libs/vkd3d/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/vkd3d/state.c b/libs/vkd3d/state.c index a9eb7f73..4d8fdcb3 100644 --- a/libs/vkd3d/state.c +++ b/libs/vkd3d/state.c @@ -110,7 +110,7 @@ static void d3d12_root_signature_cleanup(struct d3d12_root_signature *root_signa static ULONG STDMETHODCALLTYPE d3d12_root_signature_Release(ID3D12RootSignature *iface) { struct d3d12_root_signature *root_signature = impl_from_ID3D12RootSignature(iface); - unsigned int refcount = InterlockedDecrement((LONG *)&root_signature->refcount); + unsigned int refcount = vkd3d_atomic_decrement_u32(&root_signature->refcount); TRACE("%p decreasing refcount to %u.\n", root_signature, refcount);