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
e39880d9
Commit
e39880d9
authored
Jun 25, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Test setting the return value via alertable NtContinue().
This is currently broken on WoW64.
parent
1168dfc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
exception.c
dlls/ntdll/tests/exception.c
+19
-3
No files found.
dlls/ntdll/tests/exception.c
View file @
e39880d9
...
...
@@ -8775,6 +8775,7 @@ static void test_user_apc(void)
NTSTATUS
status
;
CONTEXT
context
;
LONG
pass
;
int
ret
;
if
(
!
pNtQueueApcThread
)
{
...
...
@@ -8797,16 +8798,20 @@ static void test_user_apc(void)
0xc9
,
/* leave */
0xc3
,
/* ret */
};
void
(
__cdecl
*
func
)(
void
*
capture
,
CONTEXT
*
context
)
=
code_mem
;
int
(
__cdecl
*
func
)(
void
*
capture
,
CONTEXT
*
context
)
=
code_mem
;
memcpy
(
code_mem
,
code
,
sizeof
(
code
));
func
(
RtlCaptureContext
,
&
context
);
ret
=
func
(
RtlCaptureContext
,
&
context
);
/* work around broken RtlCaptureContext on Windows < 7 which doesn't set
* ContextFlags */
context
.
ContextFlags
=
CONTEXT_FULL
;
}
#else
RtlCaptureContext
(
&
context
);
{
int
(
WINAPI
*
func
)(
CONTEXT
*
context
)
=
(
void
*
)
RtlCaptureContext
;
ret
=
func
(
&
context
);
}
#endif
InterlockedIncrement
(
&
pass
);
...
...
@@ -8815,6 +8820,16 @@ static void test_user_apc(void)
/* Try to make sure context data is far enough below context.Esp. */
CONTEXT
c
[
4
];
#ifdef __i386__
context
.
Eax
=
0xabacab
;
#elif defined(__x86_64__)
context
.
Rax
=
0xabacab
;
#elif defined(__arm__)
context
.
R0
=
0xabacab
;
#elif defined(__aarch64__)
context
.
X0
=
0xabacab
;
#endif
c
[
0
]
=
context
;
test_apc_called
=
FALSE
;
...
...
@@ -8830,6 +8845,7 @@ static void test_user_apc(void)
ok
(
0
,
"Should not get here, status %#lx.
\n
"
,
status
);
return
;
}
ok
(
ret
==
0xabacab
,
"Got return value %#x.
\n
"
,
ret
);
ok
(
pass
==
3
,
"Got unexpected pass %ld.
\n
"
,
pass
);
ok
(
test_apc_called
,
"Test user APC was not called.
\n
"
);
}
...
...
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