X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=eb038d0a8e507f8d8101cc4c1ef31c8de6d2685c;hp=c692baf5a72e3db774b2e728f25e1c91e93b3b31;hb=8286e6ded2f2c6c9d48b317f077a8462d4b1f26e;hpb=3a558a3d8b1400e0bafe0ba5c368c65542462a36 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)