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
c0165091
Commit
c0165091
authored
Jan 21, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Preserve all registers in call_ebp_func.
parent
a457249f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
cppexcept.c
dlls/msvcrt/cppexcept.c
+9
-2
No files found.
dlls/msvcrt/cppexcept.c
View file @
c0165091
...
...
@@ -52,8 +52,15 @@ DWORD cxx_frame_handler( PEXCEPTION_RECORD rec, cxx_exception_frame* frame,
inline
static
void
*
call_ebp_func
(
void
*
func
,
void
*
ebp
)
{
void
*
ret
;
__asm__
__volatile__
(
"pushl %%ebp; movl %2,%%ebp; call *%%eax; popl %%ebp"
\
:
"=a"
(
ret
)
:
"0"
(
func
),
"r"
(
ebp
)
:
"ecx"
,
"edx"
,
"memory"
);
int
dummy
;
__asm__
__volatile__
(
"pushl %%ebx
\n\t
"
"pushl %%ebp
\n\t
"
"movl %4,%%ebp
\n\t
"
"call *%%eax
\n\t
"
"popl %%ebp
\n\t
"
"popl %%ebx"
:
"=a"
(
ret
),
"=S"
(
dummy
),
"=D"
(
dummy
)
:
"0"
(
func
),
"1"
(
ebp
)
:
"ecx"
,
"edx"
,
"memory"
);
return
ret
;
}
...
...
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