Module: vkd3d Branch: master Commit: d891e5c2a0f9f80ac087dc3207305db1ff105c94 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/d891e5c2a0f9f80ac087dc3207305d... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Jan 11 20:51:07 2024 +0100 vkd3d: Use vkd3d_atomic_decrement_u32() in d3d12_command_allocator_Release(). --- libs/vkd3d/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c index f6d405f8..a0e88382 100644 --- a/libs/vkd3d/command.c +++ b/libs/vkd3d/command.c @@ -1645,7 +1645,7 @@ static ULONG STDMETHODCALLTYPE d3d12_command_allocator_AddRef(ID3D12CommandAlloc static ULONG STDMETHODCALLTYPE d3d12_command_allocator_Release(ID3D12CommandAllocator *iface) { struct d3d12_command_allocator *allocator = impl_from_ID3D12CommandAllocator(iface); - unsigned int refcount = InterlockedDecrement((LONG *)&allocator->refcount); + unsigned int refcount = vkd3d_atomic_decrement_u32(&allocator->refcount); TRACE("%p decreasing refcount to %u.\n", allocator, refcount);