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
835f99bd
Commit
835f99bd
authored
Jan 06, 2024
by
Jinoh Kang
Committed by
Alexandre Julliard
Jan 08, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Don't hard code the maximum XState length in test_extended_context().
This is required to support systems with a larger XSAVE area.
parent
7ba9dea9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
exception.c
dlls/ntdll/tests/exception.c
+5
-2
No files found.
dlls/ntdll/tests/exception.c
View file @
835f99bd
...
...
@@ -10884,7 +10884,7 @@ static void test_extended_context(void)
const
struct
context_parameters
*
context_arch
;
const
ULONG64
supported_features
=
7
,
supported_compaction_mask
=
supported_features
|
((
ULONG64
)
1
<<
63
);
ULONG
expected_length
,
expected_length_xstate
,
context_flags
,
expected_offset
;
ULONG
expected_length
,
expected_length_xstate
,
context_flags
,
expected_offset
,
max_xstate_length
;
ULONG64
enabled_features
,
expected_compaction
;
DECLSPEC_ALIGN
(
64
)
BYTE
context_buffer2
[
2048
];
DECLSPEC_ALIGN
(
64
)
BYTE
context_buffer
[
2048
];
...
...
@@ -11511,6 +11511,9 @@ static void test_extended_context(void)
context_ex
=
(
CONTEXT_EX
*
)(
context
+
1
);
xs
=
(
XSTATE
*
)((
BYTE
*
)
context_ex
+
context_ex
->
XState
.
Offset
);
max_xstate_length
=
context_ex
->
XState
.
Length
;
ok
(
max_xstate_length
>=
sizeof
(
XSTATE
),
"XSTATE size: %#lx; min: %#Ix.
\n
"
,
max_xstate_length
,
sizeof
(
XSTATE
));
*
(
void
**
)(
call_func_code_set_ymm0
+
call_func_offsets
.
func_addr
)
=
RtlCaptureContext
;
*
(
void
**
)(
call_func_code_set_ymm0
+
call_func_offsets
.
func_param1
)
=
context
;
*
(
void
**
)(
call_func_code_set_ymm0
+
call_func_offsets
.
func_param2
)
=
(
void
*
)
0xdeadbeef
;
...
...
@@ -11571,7 +11574,7 @@ static void test_extended_context(void)
xs
->
CompactionMask
=
4
;
xs
->
Mask
=
compaction_enabled
?
0
:
4
;
context_ex
->
XState
.
Length
=
sizeof
(
XSTATE
)
+
64
;
context_ex
->
XState
.
Length
=
max_xstate_length
+
64
;
bret
=
func
();
ok
(
!
bret
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Got unexpected bret %#x, GetLastError() %lu.
\n
"
,
bret
,
GetLastError
());
...
...
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