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

View File

@ -303,7 +303,7 @@ ArchMultithreadWindows::newThread(ThreadFunc func, void* data)
// create thread
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));
thread->m_id = static_cast<DWORD>(id);