mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-common: Get rid of InterlockedDecrement().
This commit is contained in:
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
@ -304,13 +304,6 @@ static inline uint32_t vkd3d_atomic_increment_u32(uint32_t volatile *x)
|
||||
return vkd3d_atomic_add_fetch_u32(x, 1);
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
static inline LONG InterlockedDecrement(LONG volatile *x)
|
||||
{
|
||||
return vkd3d_atomic_decrement_u32((uint32_t *)x);
|
||||
}
|
||||
#endif /* _WIN32 */
|
||||
|
||||
static inline void vkd3d_parse_version(const char *version, int *major, int *minor)
|
||||
{
|
||||
*major = atoi(version);
|
||||
|
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user