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
6775a20f
Commit
6775a20f
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: Fix test_user_apc() on i386.
parent
021eefde
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
exception.c
dlls/ntdll/tests/exception.c
+20
-0
No files found.
dlls/ntdll/tests/exception.c
View file @
6775a20f
...
...
@@ -8784,7 +8784,27 @@ static void test_user_apc(void)
pass
=
0
;
InterlockedIncrement
(
&
pass
);
#ifdef __i386__
{
/* RtlCaptureContext puts the return address of the caller's stack
* frame into %eip, so we need a thunk to get it to return here */
static
const
BYTE
code
[]
=
{
0x55
,
/* pushl %ebp */
0x89
,
0xe5
,
/* movl %esp, %ebp */
0xff
,
0x75
,
0x0c
,
/* pushl 0xc(%ebp) */
0xff
,
0x55
,
0x08
,
/* call *0x8(%ebp) */
0xc9
,
/* leave */
0xc3
,
/* ret */
};
void
(
__cdecl
*
func
)(
void
*
capture
,
CONTEXT
*
context
)
=
code_mem
;
memcpy
(
code_mem
,
code
,
sizeof
(
code
));
func
(
RtlCaptureContext
,
&
context
);
}
#else
RtlCaptureContext
(
&
context
);
#endif
InterlockedIncrement
(
&
pass
);
if
(
pass
==
2
)
...
...
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