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