GetCurThreadName -> GetCurrentThreadName

This commit is contained in:
Chris Danford
2007-02-23 22:02:26 +00:00
parent 74cc43ad46
commit 808a5d2b2c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -91,7 +91,7 @@ static DWORD WINAPI StartThread( LPVOID pData )
{ {
ThreadImpl_Win32 *pThis = (ThreadImpl_Win32 *) pData; ThreadImpl_Win32 *pThis = (ThreadImpl_Win32 *) pData;
SetThreadName( GetCurrentThreadId(), RageThread::GetCurThreadName() ); SetThreadName( GetCurrentThreadId(), RageThread::GetCurrentThreadName() );
DWORD ret = (DWORD) pThis->m_pFunc( pThis->m_pData ); DWORD ret = (DWORD) pThis->m_pFunc( pThis->m_pData );
@@ -131,7 +131,7 @@ ThreadImpl *MakeThisThread()
{ {
ThreadImpl_Win32 *thread = new ThreadImpl_Win32; ThreadImpl_Win32 *thread = new ThreadImpl_Win32;
SetThreadName( GetCurrentThreadId(), RageThread::GetCurThreadName() ); SetThreadName( GetCurrentThreadId(), RageThread::GetCurrentThreadName() );
const HANDLE CurProc = GetCurrentProcess(); const HANDLE CurProc = GetCurrentProcess();
int ret = DuplicateHandle( CurProc, GetCurrentThread(), CurProc, int ret = DuplicateHandle( CurProc, GetCurrentThread(), CurProc,
+1 -1
View File
@@ -239,7 +239,7 @@ void RunChild()
WriteToChild( hToStdin, buf, iSize ); WriteToChild( hToStdin, buf, iSize );
/* 6. Write the crashed thread's name. */ /* 6. Write the crashed thread's name. */
p = RageThread::GetCurThreadName(); p = RageThread::GetCurrentThreadName();
iSize = strlen( p )+1; iSize = strlen( p )+1;
WriteToChild( hToStdin, &iSize, sizeof(iSize) ); WriteToChild( hToStdin, &iSize, sizeof(iSize) );
WriteToChild( hToStdin, p, iSize ); WriteToChild( hToStdin, p, iSize );