Fix not passing pointer into InitializeConditionCariable

This commit is contained in:
Philip Rader 2023-02-18 17:03:05 -07:00
parent 1c6231aad4
commit 01eae144e1

View File

@ -101,7 +101,7 @@ void _glfwPlatformUnlockMutex(_GLFWmutex* mutex)
GLFWbool _glfwPlatformCreateCondVar(_GLFWcondvar* condvar) GLFWbool _glfwPlatformCreateCondVar(_GLFWcondvar* condvar)
{ {
assert(condvar->win32.allocated == GLFW_FALSE); assert(condvar->win32.allocated == GLFW_FALSE);
InitializeConditionVariable(condvar->win32.condvar); InitializeConditionVariable(&condvar->win32.condvar);
return condvar->win32.allocated = GLFW_TRUE; return condvar->win32.allocated = GLFW_TRUE;
} }