mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-04 20:07:49 +00:00
kernel32: Adjust thread creation insertion order.
Signed-off-by: Changping Yu <dead.ash@hotmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ab7485bb4b
commit
59ce4e3eb8
|
@ -227,7 +227,6 @@ static DWORD WINAPI get_id_thread(void* curr_pid)
|
|||
/* Reset data */
|
||||
thread_traversed[i] = 0;
|
||||
}
|
||||
todo_wine
|
||||
ok(found == FALSE, "The thread order is not strictly consistent\n");
|
||||
|
||||
/* Determine the order by NtQuerySystemInformation function */
|
||||
|
@ -282,7 +281,6 @@ static DWORD WINAPI get_id_thread(void* curr_pid)
|
|||
break;
|
||||
}
|
||||
}
|
||||
todo_wine
|
||||
ok(found == FALSE, "wrong order in NtQuerySystemInformation function\n");
|
||||
|
||||
SetEvent(ev);
|
||||
|
@ -303,7 +301,6 @@ static void test_main_thread(DWORD curr_pid, DWORD main_tid)
|
|||
|
||||
/* Check that the main thread id is first one in this thread. */
|
||||
tid = get_id_thread(ULongToPtr(curr_pid));
|
||||
todo_wine
|
||||
ok(tid == main_tid, "The first thread id returned is not the main thread id\n");
|
||||
|
||||
/* Check that the main thread id is first one in other thread. */
|
||||
|
@ -312,7 +309,6 @@ static void test_main_thread(DWORD curr_pid, DWORD main_tid)
|
|||
ok(error == WAIT_OBJECT_0, "Thread did not complete within timelimit\n");
|
||||
|
||||
ok(GetExitCodeThread(thread, &tid), "Could not retrieve exit code\n");
|
||||
todo_wine
|
||||
ok(tid == main_tid, "The first thread id returned is not the main thread id\n");
|
||||
}
|
||||
|
||||
|
|
|
@ -329,7 +329,7 @@ struct thread *create_thread( int fd, struct process *process, const struct secu
|
|||
thread->affinity = process->affinity;
|
||||
if (!current) current = thread;
|
||||
|
||||
list_add_head( &thread_list, &thread->entry );
|
||||
list_add_tail( &thread_list, &thread->entry );
|
||||
|
||||
if (sd && !set_sd_defaults_from_token( &thread->obj, sd,
|
||||
OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION |
|
||||
|
|
Loading…
Reference in a new issue