vkd3d: Use vkd3d_atomic_decrement_u32() in vkd3d_instance_decref().

This commit is contained in:
Henri Verbeet 2024-01-24 20:39:13 +01:00 committed by Alexandre Julliard
parent 042e269791
commit f61891954e
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

@ -759,7 +759,7 @@ ULONG vkd3d_instance_incref(struct vkd3d_instance *instance)
ULONG vkd3d_instance_decref(struct vkd3d_instance *instance)
{
unsigned int refcount = InterlockedDecrement((LONG *)&instance->refcount);
unsigned int refcount = vkd3d_atomic_decrement_u32(&instance->refcount);
TRACE("%p decreasing refcount to %u.\n", instance, refcount);