Restore safe reinterpret_cast of Windows thread handle

This commit is contained in:
Andrew Nelless 2016-09-12 16:21:33 +01:00
parent 702f095efd
commit 2e30dc2c68
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ ArchMultithreadWindows::newThread(ThreadFunc func, void* data)
// create thread // create thread
unsigned int id = 0; unsigned int id = 0;
thread->m_thread = static_cast<HANDLE>(_beginthreadex(NULL, 0, thread->m_thread = reinterpret_cast<HANDLE>(_beginthreadex(NULL, 0,
threadFunc, (void*)thread, 0, &id)); threadFunc, (void*)thread, 0, &id));
thread->m_id = static_cast<DWORD>(id); thread->m_id = static_cast<DWORD>(id);