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
341068aa
Commit
341068aa
authored
Apr 28, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Delay setting system registers until suspending select is waken.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e5a9c256
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
thread.c
server/thread.c
+10
-5
No files found.
server/thread.c
View file @
341068aa
...
...
@@ -1706,7 +1706,13 @@ DECL_HANDLER(select)
else
if
(
get_error
()
!=
STATUS_PENDING
&&
get_reply_max_size
()
==
sizeof
(
context_t
)
&&
current
->
context
&&
current
->
suspend_cookie
==
req
->
cookie
)
{
if
(
current
->
context
->
regs
.
flags
)
set_reply_data
(
&
current
->
context
->
regs
,
sizeof
(
context_t
)
);
if
(
current
->
context
->
regs
.
flags
)
{
unsigned
int
system_flags
=
get_context_system_regs
(
current
->
process
->
cpu
)
&
current
->
context
->
regs
.
flags
;
if
(
system_flags
)
set_thread_context
(
current
,
&
current
->
context
->
regs
,
system_flags
);
set_reply_data
(
&
current
->
context
->
regs
,
sizeof
(
context_t
)
);
}
release_object
(
current
->
context
);
current
->
context
=
NULL
;
}
...
...
@@ -1896,14 +1902,13 @@ DECL_HANDLER(set_thread_context)
else
{
unsigned
int
system_flags
=
get_context_system_regs
(
context
->
cpu
)
&
context
->
flags
;
unsigned
int
client_flags
=
context
->
flags
&
~
system_flags
;
if
(
system_flags
)
set_thread_context
(
thread
,
context
,
system_flags
);
if
(
thread
!=
current
&&
!
get_error
())
stop_thread
(
thread
);
if
(
thread
!=
current
)
stop_thread
(
thread
);
else
if
(
system_flags
)
set_thread_context
(
thread
,
context
,
system_flags
);
if
(
thread
->
context
&&
!
get_error
())
{
copy_context
(
&
thread
->
context
->
regs
,
context
,
context
->
flags
);
thread
->
context
->
regs
.
flags
|=
c
lient_
flags
;
thread
->
context
->
regs
.
flags
|=
c
ontext
->
flags
;
}
}
...
...
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