vkd3d: Use vkd3d_atomic_decrement_u32() in d3d12_device_Release().

This commit is contained in:
Henri Verbeet 2024-01-24 20:45:25 +01:00 committed by Alexandre Julliard
parent 7d7833f3c0
commit 4fd4ecc020
Notes: Alexandre Julliard 2024-01-29 22:53:07 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/609

View File

@ -2563,7 +2563,7 @@ static HRESULT device_worker_stop(struct d3d12_device *device)
static ULONG STDMETHODCALLTYPE d3d12_device_Release(ID3D12Device5 *iface)
{
struct d3d12_device *device = impl_from_ID3D12Device5(iface);
unsigned int refcount = InterlockedDecrement((LONG *)&device->refcount);
unsigned int refcount = vkd3d_atomic_decrement_u32(&device->refcount);
TRACE("%p decreasing refcount to %u.\n", device, refcount);