This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Restore safe reinterpret_cast of Windows thread handle

  • Loading branch information...
nlyan committed Sep 12, 2016
1 parent 702f095 commit 2e30dc2c68b2a99a562ca0ec93e1a39bfbcadef2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lib/arch/win32/ArchMultithreadWindows.cpp
@@ -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);

0 comments on commit 2e30dc2

Please sign in to comment.