mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d: Fix checking for failure from SleepConditionVariableCS().
Fixes: 552926cfca
This commit is contained in:
committed by
Alexandre Julliard
parent
2e074ebce7
commit
898fc9e198
Notes:
Alexandre Julliard
2023-02-07 22:15:20 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/82
@@ -244,10 +244,7 @@ static inline void vkd3d_cond_broadcast(struct vkd3d_cond *cond)
|
|||||||
|
|
||||||
static inline void vkd3d_cond_wait(struct vkd3d_cond *cond, struct vkd3d_mutex *lock)
|
static inline void vkd3d_cond_wait(struct vkd3d_cond *cond, struct vkd3d_mutex *lock)
|
||||||
{
|
{
|
||||||
BOOL ret;
|
if (!SleepConditionVariableCS(&cond->cond, &lock->lock, INFINITE))
|
||||||
|
|
||||||
ret = SleepConditionVariableCS(&cond->cond, &lock->lock, INFINITE);
|
|
||||||
if (ret)
|
|
||||||
ERR("Could not sleep on the condition variable, error %u.\n", GetLastError());
|
ERR("Could not sleep on the condition variable, error %u.\n", GetLastError());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user