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
b25ad76a
Commit
b25ad76a
authored
Jul 14, 2007
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Jul 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Preserve registers when calling unwind function.
parent
e59a947c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
except.c
dlls/msvcrt/except.c
+10
-1
No files found.
dlls/msvcrt/except.c
View file @
b25ad76a
...
...
@@ -84,7 +84,16 @@ static inline int call_filter( int (*func)(PEXCEPTION_POINTERS), void *arg, void
static
inline
int
call_unwind_func
(
int
(
*
func
)(
void
),
void
*
ebp
)
{
int
ret
;
__asm__
__volatile__
(
"pushl %%ebp; movl %2,%%ebp; call *%0; popl %%ebp"
__asm__
__volatile__
(
"pushl %%ebp
\n\t
"
"pushl %%ebx
\n\t
"
"pushl %%esi
\n\t
"
"pushl %%edi
\n\t
"
"movl %2,%%ebp
\n\t
"
"call *%0
\n\t
"
"popl %%edi
\n\t
"
"popl %%esi
\n\t
"
"popl %%ebx
\n\t
"
"popl %%ebp"
:
"=a"
(
ret
)
:
"0"
(
func
),
"r"
(
ebp
)
:
"ecx"
,
"edx"
,
"memory"
);
...
...
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