Module: vkd3d Branch: master Commit: 920f5293e9b9f685131b628ccac1e9c7cc611664 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/920f5293e9b9f685131b628ccac1e9...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Mon Jan 29 17:34:15 2024 +0100
vkd3d: Use vkd3d_atomic_decrement_u32() in d3d12_query_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 a6c12002..cd2f9af0 100644 --- a/libs/vkd3d/resource.c +++ b/libs/vkd3d/resource.c @@ -4439,7 +4439,7 @@ static ULONG STDMETHODCALLTYPE d3d12_query_heap_AddRef(ID3D12QueryHeap *iface) static ULONG STDMETHODCALLTYPE d3d12_query_heap_Release(ID3D12QueryHeap *iface) { struct d3d12_query_heap *heap = impl_from_ID3D12QueryHeap(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);