From 7f805dcc877e0cc244134c5e699473d523eea7e5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 7 Sep 2004 03:26:23 +0000 Subject: [PATCH] simplify --- stepmania/src/arch/Threads/Threads_Win32.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) 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; }