diff --git a/core/thread.c b/core/thread.c index 2022934..74df1e9 100644 --- a/core/thread.c +++ b/core/thread.c @@ -61,6 +61,6 @@ void MDEThreadDestroy(MDEThread thread) { void MDEThreadJoin(MDEThread thread) { void* p; - pthread_join(thread, &p); + pthread_join(*(pthread_t*)thread, &p); } #endif