Module: vkd3d Branch: master Commit: 3295f0d16eeb834c0165703198fa1038629ad805 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/3295f0d16eeb834c0165703198fa10...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Wed Jan 24 20:30:16 2024 +0100
vkd3d: Use vkd3d_atomic_decrement_u32() in d3d12_command_signature_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 b5a46a1d..3cf58e06 100644 --- a/libs/vkd3d/command.c +++ b/libs/vkd3d/command.c @@ -7452,7 +7452,7 @@ static ULONG STDMETHODCALLTYPE d3d12_command_signature_AddRef(ID3D12CommandSigna static ULONG STDMETHODCALLTYPE d3d12_command_signature_Release(ID3D12CommandSignature *iface) { struct d3d12_command_signature *signature = impl_from_ID3D12CommandSignature(iface); - unsigned int refcount = InterlockedDecrement((LONG *)&signature->refcount); + unsigned int refcount = vkd3d_atomic_decrement_u32(&signature->refcount);
TRACE("%p decreasing refcount to %u.\n", signature, refcount);