Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
59ce4e3e
Commit
59ce4e3e
authored
Jun 29, 2020
by
Changping Yu
Committed by
Alexandre Julliard
Jun 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Adjust thread creation insertion order.
Signed-off-by:
Changping Yu
<
dead.ash@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ab7485bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
toolhelp.c
dlls/kernel32/tests/toolhelp.c
+0
-4
thread.c
server/thread.c
+1
-1
No files found.
dlls/kernel32/tests/toolhelp.c
View file @
59ce4e3e
...
...
@@ -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
"
);
}
...
...
server/thread.c
View file @
59ce4e3e
...
...
@@ -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
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment