vkd3d: Use vkd3d_atomic_decrement_u32() in d3d12_command_signature_Release().

This commit is contained in:
Henri Verbeet 2024-01-24 20:30:16 +01:00 committed by Alexandre Julliard
parent 13ba36bb43
commit 3295f0d16e
Notes: Alexandre Julliard 2024-01-25 23:12:07 +01:00
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/605

View File

@ -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);