Module: vkd3d Branch: master Commit: 334f60c281506e7edce0ef35182903e3cddf7c1f URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/334f60c281506e7edce0ef35182903...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Mon Jan 29 17:30:42 2024 +0100
vkd3d: Use vkd3d_atomic_decrement_u32() in d3d12_descriptor_heap_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 ccc2affc..dbf84016 100644 --- a/libs/vkd3d/resource.c +++ b/libs/vkd3d/resource.c @@ -4020,7 +4020,7 @@ static ULONG STDMETHODCALLTYPE d3d12_descriptor_heap_AddRef(ID3D12DescriptorHeap static ULONG STDMETHODCALLTYPE d3d12_descriptor_heap_Release(ID3D12DescriptorHeap *iface) { struct d3d12_descriptor_heap *heap = impl_from_ID3D12DescriptorHeap(iface); - unsigned int refcount = InterlockedDecrement((LONG *)&heap->refcount); + unsigned int refcount = vkd3d_atomic_decrement_u32(&heap->refcount);
TRACE("%p decreasing refcount to %u.\n", heap, refcount);