--- mstools/samples/tls/tlscall.c 2018/08/09 18:20:59 1.1.1.1 +++ mstools/samples/tls/tlscall.c 2018/08/09 18:22:12 1.1.1.2 @@ -1,3 +1,12 @@ +/****************************************************************************\ +* +* Microsoft Developer Support +* Copyright (c) 1992 Microsoft Corporation +* +* MODULE: tlscall.c +* +/****************************************************************************/ + #include #include #include @@ -67,8 +76,8 @@ Calls: CreateThread: to create threads */ { -DWORD threadid; -HANDLE hThreads[3]; +int threadid; +HANDLE hThreads[NUMTHREADS]; int count; /* start NUMTHREADS threads */ @@ -79,7 +88,7 @@ for (count = 0 ; count < NUMTHREADS ; co (LPTHREAD_START_ROUTINE)Another_Thread, NULL, 0, - &threadid); + (LPDWORD)&threadid); if( hThreads[count] == 0) ErrorOut("CreateThread"); else