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
0ac49a99
Commit
0ac49a99
authored
Oct 02, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
except_handler3: Set correct %ebp when calling exception filter.
parent
ceb25b5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
except.c
dlls/msvcrt/except.c
+9
-1
No files found.
dlls/msvcrt/except.c
View file @
0ac49a99
...
...
@@ -70,6 +70,14 @@ inline static void call_finally_block( void *code_block, void *base_ptr )
__asm__
__volatile__
(
"movl %1,%%ebp; call *%%eax"
\
:
:
"a"
(
code_block
),
"g"
(
base_ptr
));
}
static
DWORD
call_filter
(
void
*
func
,
void
*
arg
,
void
*
ebp
)
{
DWORD
ret
;
__asm__
__volatile__
(
"pushl %%ebp; pushl %3; movl %2,%%ebp; call *%%eax; popl %%ebp; popl %%ebp"
:
"=a"
(
ret
)
:
"0"
(
func
),
"g"
(
ebp
),
"g"
(
arg
)
);
return
ret
;
}
#endif
static
DWORD
MSVCRT_nested_handler
(
PEXCEPTION_RECORD
rec
,
...
...
@@ -206,7 +214,7 @@ int _except_handler3(PEXCEPTION_RECORD rec,
{
TRACE
(
"filter = %p
\n
"
,
pScopeTable
[
trylevel
].
lpfnFilter
);
retval
=
pScopeTable
[
trylevel
].
lpfnFilter
(
&
exceptPtrs
);
retval
=
call_filter
(
pScopeTable
[
trylevel
].
lpfnFilter
,
&
exceptPtrs
,
&
frame
->
_ebp
);
TRACE
(
"filter returned %s
\n
"
,
retval
==
EXCEPTION_CONTINUE_EXECUTION
?
"CONTINUE_EXECUTION"
:
retval
==
EXCEPTION_EXECUTE_HANDLER
?
...
...
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