[SF 2445467] Bug in Thread_WIN32.cpp

This commit is contained in:
Aleksandar Fabijanic 2008-12-23 16:23:35 +00:00
parent 8311cd078a
commit 600161cbf3

View File

@ -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");