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
03d31ea8
Commit
03d31ea8
authored
Jan 22, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Only update the modified parts of the context on thread suspend.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a6f85e61
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
exception.c
dlls/ntdll/exception.c
+6
-1
server_protocol.h
include/wine/server_protocol.h
+1
-1
thread.c
server/thread.c
+5
-1
No files found.
dlls/ntdll/exception.c
View file @
03d31ea8
...
...
@@ -110,6 +110,7 @@ void wait_suspend( CONTEXT *context )
LARGE_INTEGER
timeout
;
int
saved_errno
=
errno
;
context_t
server_context
;
DWORD
flags
=
context
->
ContextFlags
;
context_to_server
(
&
server_context
,
context
);
...
...
@@ -130,10 +131,14 @@ void wait_suspend( CONTEXT *context )
{
wine_server_set_reply
(
req
,
&
server_context
,
sizeof
(
server_context
)
);
wine_server_call
(
req
);
if
(
wine_server_reply_size
(
reply
))
{
context_from_server
(
context
,
&
server_context
);
context
->
ContextFlags
|=
flags
;
/* unchanged registers are still available */
}
}
SERVER_END_REQ
;
context_from_server
(
context
,
&
server_context
);
errno
=
saved_errno
;
}
...
...
include/wine/server_protocol.h
View file @
03d31ea8
...
...
@@ -6496,6 +6496,6 @@ union generic_reply
struct
terminate_job_reply
terminate_job_reply
;
};
#define SERVER_PROTOCOL_VERSION 54
7
#define SERVER_PROTOCOL_VERSION 54
8
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
server/thread.c
View file @
03d31ea8
...
...
@@ -1715,7 +1715,10 @@ DECL_HANDLER(get_suspend_context)
if
(
current
->
suspend_context
)
{
set_reply_data_ptr
(
current
->
suspend_context
,
sizeof
(
context_t
)
);
if
(
current
->
suspend_context
->
flags
)
set_reply_data_ptr
(
current
->
suspend_context
,
sizeof
(
context_t
)
);
else
free
(
current
->
suspend_context
);
if
(
current
->
context
==
current
->
suspend_context
)
{
current
->
context
=
NULL
;
...
...
@@ -1745,6 +1748,7 @@ DECL_HANDLER(set_suspend_context)
else
if
((
current
->
suspend_context
=
mem_alloc
(
sizeof
(
context_t
)
)))
{
memcpy
(
current
->
suspend_context
,
get_req_data
(),
sizeof
(
context_t
)
);
current
->
suspend_context
->
flags
=
0
;
/* to keep track of what is modified */
current
->
context
=
current
->
suspend_context
;
if
(
current
->
debug_break
)
break_thread
(
current
);
}
...
...
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