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
a10da8a4
Commit
a10da8a4
authored
Feb 08, 2024
by
Paul Gofman
Committed by
Alexandre Julliard
Mar 26, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Preserve untouched parts of xstate in NtSetContextThread().
parent
7ae23ad7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
signal_i386.c
dlls/ntdll/unix/signal_i386.c
+2
-0
signal_x86_64.c
dlls/ntdll/unix/signal_x86_64.c
+2
-0
No files found.
dlls/ntdll/unix/signal_i386.c
View file @
a10da8a4
...
...
@@ -1004,9 +1004,11 @@ NTSTATUS WINAPI NtSetContextThread( HANDLE handle, const CONTEXT *context )
{
CONTEXT_EX
*
context_ex
=
(
CONTEXT_EX
*
)(
context
+
1
);
XSAVE_AREA_HEADER
*
xs
=
(
XSAVE_AREA_HEADER
*
)((
char
*
)
context_ex
+
context_ex
->
XState
.
Offset
);
UINT64
mask
=
frame
->
xstate
.
Mask
;
if
(
xstate_compaction_enabled
)
frame
->
xstate
.
CompactionMask
|=
xstate_extended_features
();
copy_xstate
(
&
frame
->
xstate
,
xs
,
xs
->
Mask
);
if
(
xs
->
CompactionMask
)
frame
->
xstate
.
Mask
|=
mask
&
~
xs
->
CompactionMask
;
}
frame
->
restore_flags
|=
flags
&
~
CONTEXT_INTEGER
;
...
...
dlls/ntdll/unix/signal_x86_64.c
View file @
a10da8a4
...
...
@@ -1050,9 +1050,11 @@ NTSTATUS WINAPI NtSetContextThread( HANDLE handle, const CONTEXT *context )
{
CONTEXT_EX
*
context_ex
=
(
CONTEXT_EX
*
)(
context
+
1
);
XSAVE_AREA_HEADER
*
xs
=
(
XSAVE_AREA_HEADER
*
)((
char
*
)
context_ex
+
context_ex
->
XState
.
Offset
);
UINT64
mask
=
frame
->
xstate
.
Mask
;
if
(
xstate_compaction_enabled
)
frame
->
xstate
.
CompactionMask
|=
xstate_extended_features
();
copy_xstate
(
&
frame
->
xstate
,
xs
,
xs
->
Mask
);
if
(
xs
->
CompactionMask
)
frame
->
xstate
.
Mask
|=
mask
&
~
xs
->
CompactionMask
;
}
frame
->
restore_flags
|=
flags
&
~
CONTEXT_INTEGER
;
...
...
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