summaryrefslogtreecommitdiff
path: root/tests/cancel7.c
diff options
context:
space:
mode:
authorrpj <rpj>2004-09-08 09:08:00 +0000
committerrpj <rpj>2004-09-08 09:08:00 +0000
commit4b0d69122798d07ac700941d3b649f1653750ce2 (patch)
treea1f21f91805efb53a2bc39c1fcfdc2f7a40e99cb /tests/cancel7.c
parent1660c9f40520f8af25206defffeff3f8c0fe0a50 (diff)
''
Diffstat (limited to 'tests/cancel7.c')
-rw-r--r--tests/cancel7.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/cancel7.c b/tests/cancel7.c
index eda393b..9ad7db0 100644
--- a/tests/cancel7.c
+++ b/tests/cancel7.c
@@ -127,13 +127,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