Module: vkd3d Branch: master Commit: 298dce541db1c6ce0f97baa9a33565fb4f1e110b URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/298dce541db1c6ce0f97baa9a33565...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Tue Jan 23 18:28:06 2024 +0100
vkd3d: Use vkd3d_atomic_decrement_u32() in d3d12_command_list_Release().
---
libs/vkd3d/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c index 9648a9f4..2307659d 100644 --- a/libs/vkd3d/command.c +++ b/libs/vkd3d/command.c @@ -2335,7 +2335,7 @@ static void vkd3d_pipeline_bindings_cleanup(struct vkd3d_pipeline_bindings *bind static ULONG STDMETHODCALLTYPE d3d12_command_list_Release(ID3D12GraphicsCommandList5 *iface) { struct d3d12_command_list *list = impl_from_ID3D12GraphicsCommandList5(iface); - unsigned int refcount = InterlockedDecrement((LONG *)&list->refcount); + unsigned int refcount = vkd3d_atomic_decrement_u32(&list->refcount);
TRACE("%p decreasing refcount to %u.\n", list, refcount);