vkd3d-common: Use vkd3d_atomic_decrement_u32() in vkd3d_blob_Release().

This commit is contained in:
Henri Verbeet 2024-01-18 19:50:00 +01:00 committed by Alexandre Julliard
parent 9228e13155
commit 14da4df99e
Notes: Alexandre Julliard 2024-01-18 23:21:43 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/576

View File

@ -69,7 +69,7 @@ static ULONG STDMETHODCALLTYPE vkd3d_blob_AddRef(ID3DBlob *iface)
static ULONG STDMETHODCALLTYPE vkd3d_blob_Release(ID3DBlob *iface) static ULONG STDMETHODCALLTYPE vkd3d_blob_Release(ID3DBlob *iface)
{ {
struct vkd3d_blob *blob = impl_from_ID3DBlob(iface); struct vkd3d_blob *blob = impl_from_ID3DBlob(iface);
ULONG refcount = InterlockedDecrement((LONG *)&blob->refcount); unsigned int refcount = vkd3d_atomic_decrement_u32(&blob->refcount);
TRACE("%p decreasing refcount to %u.\n", blob, refcount); TRACE("%p decreasing refcount to %u.\n", blob, refcount);