vkd3d-common: Get rid of InterlockedDecrement().

This commit is contained in:
Henri Verbeet
2024-01-30 12:59:02 +01:00
committed by Alexandre Julliard
parent c64921e79b
commit 532e902a56
Notes: Alexandre Julliard 2024-02-06 23:42:38 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/633
2 changed files with 1 additions and 8 deletions

View File

@@ -658,7 +658,7 @@ static ULONG STDMETHODCALLTYPE parent_Release(IUnknown *iface)
{
struct parent *parent = parent_from_IUnknown(iface);
return InterlockedDecrement((LONG *)&parent->refcount);
return vkd3d_atomic_decrement_u32(&parent->refcount);
}
static const struct IUnknownVtbl parent_vtbl =