diff --git a/stepmania/src/arch/Threads/Threads_Win32.cpp b/stepmania/src/arch/Threads/Threads_Win32.cpp index 5f916801a8..7f87806145 100644 --- a/stepmania/src/arch/Threads/Threads_Win32.cpp +++ b/stepmania/src/arch/Threads/Threads_Win32.cpp @@ -105,16 +105,7 @@ ThreadImpl *MakeThisThread() thread->ThreadId = GetCurrentThreadId(); int slot = GetOpenSlot( GetCurrentThreadId() ); - ret = DuplicateHandle( CurProc, GetCurrentThread(), CurProc, - &g_ThreadHandles[slot], 0, false, DUPLICATE_SAME_ACCESS ); - - if( !ret ) - { -// LOG->Warn( werr_ssprintf( GetLastError(), "DuplicateHandle(%p, %p) failed", -// CurProc, GetCurrentThread() ) ); - - g_ThreadHandles[slot] = NULL; - } + g_ThreadHandles[slot] = thread->ThreadHandle; return thread; } @@ -134,8 +125,6 @@ ThreadImpl *MakeThread( int (*pFunc)(void *pData), void *pData, uint64_t *piThre int slot = GetOpenSlot( thread->ThreadId ); g_ThreadHandles[slot] = thread->ThreadHandle; - /* XXX: pause the thread until we assign the above */ - return thread; }