Oct. 16, 2023
2:15 p.m.
Giovanni Mascellani (@giomasce) commented about libs/vkd3d/vkd3d_private.h:
- return 0; + { + ERR("Failed to allocate TLS key.\n."); + return false; + } + return true; }
-static inline int vkd3d_tls_key_set_value(const struct vkd3d_tls_key *key, void *value) +static inline bool vkd3d_tls_key_set_value(const struct vkd3d_tls_key *key, void *value) { - FlsSetValue(key->key, value); - return 0; + if (!FlsSetValue(key->key, value)) + { + ERR("Failed to allocate TLS key, err %u.\n.", GetLastError()); Wrong error message.
-- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/384#note_48798