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 vkd3d_instance_decref().
This commit is contained in:
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
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user