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
b5b454c5
Commit
b5b454c5
authored
Apr 30, 2014
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Handle seh exception rethrowing in catch_function_nested_handler.
parent
b4d30e92
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
except_i386.c
dlls/msvcrt/except_i386.c
+15
-6
No files found.
dlls/msvcrt/except_i386.c
View file @
b5b454c5
...
...
@@ -374,23 +374,28 @@ static DWORD catch_function_nested_handler( EXCEPTION_RECORD *rec, EXCEPTION_REG
{
PEXCEPTION_RECORD
prev_rec
=
nested_frame
->
rec
;
if
((
rec
->
ExceptionInformation
[
1
]
==
0
&&
rec
->
ExceptionInformation
[
2
]
==
0
)
||
(
rec
->
ExceptionInformation
[
1
]
==
prev_rec
->
ExceptionInformation
[
1
]
&&
(
prev_rec
->
ExceptionCode
==
CXX_EXCEPTION
&&
rec
->
ExceptionInformation
[
1
]
==
prev_rec
->
ExceptionInformation
[
1
]
&&
rec
->
ExceptionInformation
[
2
]
==
prev_rec
->
ExceptionInformation
[
2
]))
{
/* exception was rethrown */
rec
->
ExceptionInformation
[
1
]
=
prev_rec
->
ExceptionInformation
[
1
];
rec
->
ExceptionInformation
[
2
]
=
prev_rec
->
ExceptionInformation
[
2
];
TRACE
(
"detect rethrow: re-propagate: obj: %lx, type: %lx
\n
"
,
*
rec
=
*
prev_rec
;
rec
->
ExceptionFlags
&=
~
EH_UNWINDING
;
if
(
TRACE_ON
(
seh
))
{
TRACE
(
"detect rethrow: exception code: %x
\n
"
,
rec
->
ExceptionCode
);
if
(
rec
->
ExceptionCode
==
CXX_EXCEPTION
)
TRACE
(
"re-propage: obj: %lx, type: %lx
\n
"
,
rec
->
ExceptionInformation
[
1
],
rec
->
ExceptionInformation
[
2
]);
}
else
if
(
nested_frame
->
prev_rec
&&
}
else
if
(
nested_frame
->
prev_rec
&&
nested_frame
->
prev_rec
->
ExceptionCode
==
CXX_EXCEPTION
&&
nested_frame
->
prev_rec
->
ExceptionInformation
[
1
]
==
prev_rec
->
ExceptionInformation
[
1
]
&&
nested_frame
->
prev_rec
->
ExceptionInformation
[
2
]
==
prev_rec
->
ExceptionInformation
[
2
])
{
TRACE
(
"detect threw new exception in catch block - not owning old(obj: %lx type: %lx)
\n
"
,
prev_rec
->
ExceptionInformation
[
1
],
prev_rec
->
ExceptionInformation
[
2
]);
}
else
{
else
if
(
prev_rec
->
ExceptionCode
==
CXX_EXCEPTION
)
{
/* new exception in exception handler, destroy old */
void
*
object
=
(
void
*
)
prev_rec
->
ExceptionInformation
[
1
];
cxx_exception_type
*
info
=
(
cxx_exception_type
*
)
prev_rec
->
ExceptionInformation
[
2
];
...
...
@@ -399,6 +404,10 @@ static DWORD catch_function_nested_handler( EXCEPTION_RECORD *rec, EXCEPTION_REG
if
(
info
&&
info
->
destructor
)
call_dtor
(
info
->
destructor
,
object
);
}
else
{
TRACE
(
"detect threw new exception in catch block
\n
"
);
}
}
return
cxx_frame_handler
(
rec
,
nested_frame
->
cxx_frame
,
context
,
...
...
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