diff --git a/Foundation/src/Thread_WIN32.cpp b/Foundation/src/Thread_WIN32.cpp index a2b5a438c..533fca6a7 100644 --- a/Foundation/src/Thread_WIN32.cpp +++ b/Foundation/src/Thread_WIN32.cpp @@ -117,7 +117,7 @@ void ThreadImpl::createImpl(Entry ent, void* pData) _thread = CreateThread(NULL, _stackSize, ent, pData, 0, &threadId); #else unsigned threadId; - _thread = (HANDLE) _beginthreadex(NULL, _stackSize, runnableEntry, this, 0, &threadId); + _thread = (HANDLE) _beginthreadex(NULL, _stackSize, ent, this, 0, &threadId); #endif if (!_thread) throw SystemException("cannot create thread");