Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
bac0387d
Commit
bac0387d
authored
May 06, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Fail to set process affinity mask if the process is terminating.
parent
af3d73b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
loader.c
dlls/kernel32/tests/loader.c
+1
-2
process.c
server/process.c
+6
-0
No files found.
dlls/kernel32/tests/loader.c
View file @
bac0387d
...
...
@@ -1958,7 +1958,7 @@ todo_wine
/* Checking process state without waiting for process termination
* leads to different results due to a race condition.
*/
ret
=
WaitForSingleObject
(
pi
.
hProcess
,
100
);
ret
=
WaitForSingleObject
(
pi
.
hProcess
,
100
0
);
ok
(
ret
==
WAIT_OBJECT_0
,
"WaitForSingleObject failed: %x
\n
"
,
ret
);
memset
(
&
pbi
,
0
,
sizeof
(
pbi
));
...
...
@@ -1967,7 +1967,6 @@ todo_wine
ok
(
pbi
.
ExitStatus
==
198
,
"expected 198, got %lu
\n
"
,
pbi
.
ExitStatus
);
affinity
=
1
;
ret
=
pNtSetInformationProcess
(
pi
.
hProcess
,
ProcessAffinityMask
,
&
affinity
,
sizeof
(
affinity
));
todo_wine
ok
(
ret
==
STATUS_PROCESS_IS_TERMINATING
,
"expected STATUS_PROCESS_IS_TERMINATING, got %#x
\n
"
,
ret
);
SetLastError
(
0xdeadbeef
);
...
...
server/process.c
View file @
bac0387d
...
...
@@ -1122,6 +1122,12 @@ static void set_process_affinity( struct process *process, affinity_t affinity )
{
struct
thread
*
thread
;
if
(
!
process
->
running_threads
)
{
set_error
(
STATUS_PROCESS_IS_TERMINATING
);
return
;
}
process
->
affinity
=
affinity
;
LIST_FOR_EACH_ENTRY
(
thread
,
&
process
->
thread_list
,
struct
thread
,
proc_entry
)
...
...
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