diff --git a/Libraries/LibPthread/pthread.cpp b/Libraries/LibPthread/pthread.cpp index 266f61a5e1..fdf5cfbcfe 100644 --- a/Libraries/LibPthread/pthread.cpp +++ b/Libraries/LibPthread/pthread.cpp @@ -114,7 +114,7 @@ int pthread_mutex_destroy(pthread_mutex_t*) int pthread_mutex_lock(pthread_mutex_t* mutex) { - auto* atomic = reinterpret_cast*>(mutex); + auto* atomic = reinterpret_cast*>(mutex->lock); pthread_t this_thread = pthread_self(); for (;;) { u32 expected = false;