Module: vkd3d Branch: master Commit: 886c1fdcc41e730e1116a15894cdbe5fa822163b URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/886c1fdcc41e730e1116a15894cdbe...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Mon Jan 29 17:25:32 2024 +0100
vkd3d: Use vkd3d_atomic_decrement_u32() in d3d12_resource_Release().
---
libs/vkd3d/resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/vkd3d/resource.c b/libs/vkd3d/resource.c index 9da9d19a..e95c90dc 100644 --- a/libs/vkd3d/resource.c +++ b/libs/vkd3d/resource.c @@ -1302,7 +1302,7 @@ static ULONG STDMETHODCALLTYPE d3d12_resource_AddRef(ID3D12Resource1 *iface) static ULONG STDMETHODCALLTYPE d3d12_resource_Release(ID3D12Resource1 *iface) { struct d3d12_resource *resource = impl_from_ID3D12Resource1(iface); - unsigned int refcount = InterlockedDecrement((LONG *)&resource->refcount); + unsigned int refcount = vkd3d_atomic_decrement_u32(&resource->refcount);
TRACE("%p decreasing refcount to %u.\n", resource, refcount);