From: Henri Verbeet <hverbeet(a)codeweavers.com> --- 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 f607b1787..c44f3ef65 100644 --- a/libs/vkd3d/resource.c +++ b/libs/vkd3d/resource.c @@ -1012,7 +1012,7 @@ static ULONG d3d12_resource_incref(struct d3d12_resource *resource) static ULONG d3d12_resource_decref(struct d3d12_resource *resource) { - unsigned int refcount = InterlockedDecrement((LONG *)&resource->internal_refcount); + unsigned int refcount = vkd3d_atomic_decrement_u32(&resource->internal_refcount); TRACE("%p decreasing refcount to %u.\n", resource, refcount); -- GitLab https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/619