From 8286e6ded2f2c6c9d48b317f077a8462d4b1f26e Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 28 Feb 2010 11:53:29 +0100 Subject: [PATCH 1/1] We don't need lpThreadId parameter in CreateThread() Under Windows we use CreateThread() to setup threads and we pass a pointer to a variable that receives the thread identifier, but this parameter is optional and we don't use it, so remove it. No functional change. Signed-off-by: Marco Costalba --- src/search.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index c692baf5..eb038d0a 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -2759,8 +2759,7 @@ namespace { #if !defined(_MSC_VER) ok = (pthread_create(pthread, NULL, init_thread, (void*)(&i)) == 0); #else - DWORD iID[1]; - ok = (CreateThread(NULL, 0, init_thread, (LPVOID)(&i), 0, iID) != NULL); + ok = (CreateThread(NULL, 0, init_thread, (LPVOID)(&i), 0, NULL) != NULL); #endif if (!ok) -- 2.39.2