mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d: Fix checking for failure from SleepConditionVariableCS().
Fixes: 552926cfca64db45e9731f675c65a7214bfa6441
This commit is contained in:
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)
|
||||
{
|
||||
BOOL ret;
|
||||
|
||||
ret = SleepConditionVariableCS(&cond->cond, &lock->lock, INFINITE);
|
||||
if (ret)
|
||||
if (!SleepConditionVariableCS(&cond->cond, &lock->lock, INFINITE))
|
||||
ERR("Could not sleep on the condition variable, error %u.\n", GetLastError());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user