kernel32/tests: Fix tests on win9x.
authorPaul Vriens <paul.vriens.wine@gmail.com>
Thu, 1 May 2008 08:56:09 +0000 (10:56 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 1 May 2008 10:42:22 +0000 (12:42 +0200)
dlls/kernel32/tests/toolhelp.c

index aafc9825e88a7bea562695a0f9ae22866951504b..48b6a6b790f54836cc052bd9be9739b25337df2f 100644 (file)
@@ -63,7 +63,7 @@ static int     init(void)
     int                 argc;
     char**              argv;
     HANDLE              ev1, ev2, ev3, hThread;
-    DWORD               w;
+    DWORD               w, tid;
 
     argc = winetest_get_mainargs( &argv );
     strcpy(selfname, argv[0]);
@@ -78,7 +78,7 @@ static int     init(void)
         ev3 = CreateEvent(NULL, FALSE, FALSE, NULL);
 
         if (ev3 == NULL) ExitProcess(WAIT_ABANDONED);
-        hThread = CreateThread(NULL, 0, sub_thread, ev3, 0, NULL);
+        hThread = CreateThread(NULL, 0, sub_thread, ev3, 0, &tid);
         if (hThread == NULL) ExitProcess(WAIT_ABANDONED);
         if (!LoadLibraryA("shell32.dll")) ExitProcess(WAIT_ABANDONED);