Module: vkd3d Branch: master Commit: 9434687c5b98b8150cc1fa35a8fa0e6477593e04 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/9434687c5b98b8150cc1fa35a8fa0e...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Tue Jan 23 18:21:37 2024 +0100
vkd3d: Use vkd3d_atomic_decrement_u32() in d3d12_pipeline_state_Release().
---
libs/vkd3d/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/vkd3d/state.c b/libs/vkd3d/state.c index b818feb5..3428742d 100644 --- a/libs/vkd3d/state.c +++ b/libs/vkd3d/state.c @@ -2027,7 +2027,7 @@ static void d3d12_pipeline_uav_counter_state_cleanup(struct d3d12_pipeline_uav_c static ULONG STDMETHODCALLTYPE d3d12_pipeline_state_Release(ID3D12PipelineState *iface) { struct d3d12_pipeline_state *state = impl_from_ID3D12PipelineState(iface); - unsigned int refcount = InterlockedDecrement((LONG *)&state->refcount); + unsigned int refcount = vkd3d_atomic_decrement_u32(&state->refcount);
TRACE("%p decreasing refcount to %u.\n", state, refcount);