mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d: Use vkd3d_atomic_decrement_u32() in d3d12_command_signature_Release().
This commit is contained in:
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
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user