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
ff870e01
Commit
ff870e01
authored
Jul 22, 2008
by
H. Verbeet
Committed by
Alexandre Julliard
Jul 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Calling ResumeThread() on a terminated thread is valid.
parent
9a70306c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
thread.c
dlls/kernel32/tests/thread.c
+8
-0
thread.c
server/thread.c
+1
-2
No files found.
dlls/kernel32/tests/thread.c
View file @
ff870e01
...
...
@@ -450,6 +450,7 @@ static VOID test_CreateThread_suspended(void)
{
HANDLE
thread
;
DWORD
threadId
;
DWORD
suspend_count
;
int
error
;
thread
=
CreateThread
(
NULL
,
0
,
threadFunc2
,
NULL
,
...
...
@@ -471,6 +472,13 @@ static VOID test_CreateThread_suspended(void)
if
(
error
!=
WAIT_OBJECT_0
)
{
TerminateThread
(
thread
,
1
);
}
suspend_count
=
SuspendThread
(
thread
);
ok
(
suspend_count
==
-
1
,
"SuspendThread returned %d, expected -1
\n
"
,
suspend_count
);
suspend_count
=
ResumeThread
(
thread
);
ok
(
suspend_count
==
0
,
"ResumeThread returned %d, expected 0
\n
"
,
suspend_count
);
ok
(
CloseHandle
(
thread
)
!=
0
,
"CloseHandle failed
\n
"
);
}
...
...
server/thread.c
View file @
ff870e01
...
...
@@ -1160,8 +1160,7 @@ DECL_HANDLER(resume_thread)
if
((
thread
=
get_thread_from_handle
(
req
->
handle
,
THREAD_SUSPEND_RESUME
)))
{
if
(
thread
->
state
==
TERMINATED
)
set_error
(
STATUS_ACCESS_DENIED
);
else
reply
->
count
=
resume_thread
(
thread
);
reply
->
count
=
resume_thread
(
thread
);
release_object
(
thread
);
}
}
...
...
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