From 4b0d69122798d07ac700941d3b649f1653750ce2 Mon Sep 17 00:00:00 2001 From: rpj Date: Wed, 8 Sep 2004 09:08:00 +0000 Subject: '' --- tests/cancel8.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/cancel8.c') diff --git a/tests/cancel8.c b/tests/cancel8.c index fa6b15c..484472e 100644 --- a/tests/cancel8.c +++ b/tests/cancel8.c @@ -128,13 +128,14 @@ main() int failed = 0; int i; HANDLE h[NUMTHREADS + 1]; + unsigned thrAddr; /* Dummy variable to pass a valid location to _beginthreadex (Win98). */ for (i = 1; i <= NUMTHREADS; i++) { threadbag[i].started = 0; threadbag[i].threadnum = i; #if ! defined (__MINGW32__) || defined (__MSVCRT__) - h[i] = (HANDLE) _beginthreadex(NULL, 0, Win32thread, (void *) &threadbag[i], 0, NULL); + h[i] = (HANDLE) _beginthreadex(NULL, 0, Win32thread, (void *) &threadbag[i], 0, &thrAddr); #else h[i] = (HANDLE) _beginthread(Win32thread, 0, (void *) &threadbag[i]); #endif -- cgit v1.2.3