From fd7ea0cedf528095cc887bd164b0ff8b2edb2f43 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 24 Jun 2014 12:57:09 +0200 Subject: threadengine_win32 Don't ask for the thread id of newly created threads pointlessly --- src/threadengines/threadengine_win32.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/threadengines/threadengine_win32.cpp b/src/threadengines/threadengine_win32.cpp index 33eb707e4..90fe60b91 100644 --- a/src/threadengines/threadengine_win32.cpp +++ b/src/threadengines/threadengine_win32.cpp @@ -23,8 +23,7 @@ void ThreadEngine::Start(Thread* thread) { - DWORD ThreadId = 0; - thread->state.handle = CreateThread(NULL, 0, ThreadEngine::Entry, thread, 0, &ThreadId); + thread->state.handle = CreateThread(NULL, 0, ThreadEngine::Entry, thread, 0, NULL); if (thread->state.handle == NULL) { -- cgit v1.2.3