From 902182ae8d6902d2f85c9de661436098dcf1ede6 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 25 Jun 2004 19:07:30 +0000 Subject: [PATCH] fix RageThread::HaltAllThreads() deadlock in Windows --- stepmania/src/arch/Threads/Threads_Win32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/arch/Threads/Threads_Win32.cpp b/stepmania/src/arch/Threads/Threads_Win32.cpp index e1d3da0494..ce46773323 100644 --- a/stepmania/src/arch/Threads/Threads_Win32.cpp +++ b/stepmania/src/arch/Threads/Threads_Win32.cpp @@ -74,7 +74,7 @@ ThreadImpl *MakeThread( int (*pFunc)(void *pData), void *pData, uint64_t *piThre /* XXX: does ThreadHandle need to be dup'd? */ thread->ThreadHandle = CreateThread( NULL, 0, &StartThread, thread, 0, &thread->ThreadId ); - *piThreadID = (uint64_t) thread->ThreadHandle; + *piThreadID = (uint64_t) thread->ThreadId; ASSERT_M( thread->ThreadHandle, ssprintf("%s", werr_ssprintf(GetLastError(), "CreateThread")) );