Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johnny Cai
wine
Commits
107b289a
Commit
107b289a
authored
23 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a couple of bugs in _except_handler3.
parent
cf67b00a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/msvcrt/except.c
+7
-5
7 additions, 5 deletions
dlls/msvcrt/except.c
with
7 additions
and
5 deletions
dlls/msvcrt/except.c
+
7
−
5
View file @
107b289a
...
...
@@ -38,13 +38,15 @@ typedef struct _MSVCRT_EXCEPTION_FRAME
PEXCEPTION_POINTERS
xpointers
;
}
MSVCRT_EXCEPTION_FRAME
;
#define TRYLEVEL_END 0xff
/* End of trylevel list */
#define TRYLEVEL_END 0xff
ffffff
/* End of trylevel list */
#if defined(__GNUC__) && defined(__i386__)
#define CALL_FINALLY_BLOCK(code_block, base_ptr) \
__asm__ __volatile__ ("movl %0,%%eax; movl %1,%%ebp; call *%%eax" \
: : "g" (code_block), "g" (base_ptr))
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
MSVCRT_nested_handler
(
PEXCEPTION_RECORD
rec
,
struct
__EXCEPTION_FRAME
*
frame
,
...
...
@@ -201,7 +203,7 @@ int _except_handler3(PEXCEPTION_RECORD rec,
*/
frame
->
trylevel
=
pScopeTable
->
previousTryLevel
;
TRACE
(
"__finally block %p
\n
"
,
pScopeTable
[
trylevel
].
lpfnHandler
);
CALL_FINALLY_BLOCK
(
pScopeTable
[
trylevel
].
lpfnHandler
,
frame
->
_ebp
);
call_finally_block
(
pScopeTable
[
trylevel
].
lpfnHandler
,
&
frame
->
_ebp
);
ERR
(
"Returned from __finally block - expect crash!
\n
"
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment