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
5e418f0c
Commit
5e418f0c
authored
May 25, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
May 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Handle rethrown exception in cxx_frame_handler.
parent
fa3038c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
except_i386.c
dlls/msvcrt/except_i386.c
+19
-1
No files found.
dlls/msvcrt/except_i386.c
View file @
5e418f0c
...
@@ -373,7 +373,9 @@ static DWORD catch_function_nested_handler( EXCEPTION_RECORD *rec, EXCEPTION_REG
...
@@ -373,7 +373,9 @@ static DWORD catch_function_nested_handler( EXCEPTION_RECORD *rec, EXCEPTION_REG
if
(
rec
->
ExceptionCode
==
CXX_EXCEPTION
)
if
(
rec
->
ExceptionCode
==
CXX_EXCEPTION
)
{
{
PEXCEPTION_RECORD
prev_rec
=
nested_frame
->
rec
;
PEXCEPTION_RECORD
prev_rec
=
nested_frame
->
rec
;
if
(
rec
->
ExceptionInformation
[
1
]
==
0
&&
rec
->
ExceptionInformation
[
2
]
==
0
)
if
((
rec
->
ExceptionInformation
[
1
]
==
0
&&
rec
->
ExceptionInformation
[
2
]
==
0
)
||
(
rec
->
ExceptionInformation
[
1
]
==
prev_rec
->
ExceptionInformation
[
1
]
&&
rec
->
ExceptionInformation
[
2
]
==
prev_rec
->
ExceptionInformation
[
2
]))
{
{
/* exception was rethrown */
/* exception was rethrown */
rec
->
ExceptionInformation
[
1
]
=
prev_rec
->
ExceptionInformation
[
1
];
rec
->
ExceptionInformation
[
1
]
=
prev_rec
->
ExceptionInformation
[
1
];
...
@@ -381,6 +383,13 @@ static DWORD catch_function_nested_handler( EXCEPTION_RECORD *rec, EXCEPTION_REG
...
@@ -381,6 +383,13 @@ static DWORD catch_function_nested_handler( EXCEPTION_RECORD *rec, EXCEPTION_REG
TRACE
(
"detect rethrow: re-propagate: obj: %lx, type: %lx
\n
"
,
TRACE
(
"detect rethrow: re-propagate: obj: %lx, type: %lx
\n
"
,
rec
->
ExceptionInformation
[
1
],
rec
->
ExceptionInformation
[
2
]);
rec
->
ExceptionInformation
[
1
],
rec
->
ExceptionInformation
[
2
]);
}
}
else
if
(
nested_frame
->
prev_rec
&&
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
{
/* new exception in exception handler, destroy old */
/* new exception in exception handler, destroy old */
void
*
object
=
(
void
*
)
prev_rec
->
ExceptionInformation
[
1
];
void
*
object
=
(
void
*
)
prev_rec
->
ExceptionInformation
[
1
];
...
@@ -506,6 +515,15 @@ DWORD CDECL cxx_frame_handler( PEXCEPTION_RECORD rec, cxx_exception_frame* frame
...
@@ -506,6 +515,15 @@ DWORD CDECL cxx_frame_handler( PEXCEPTION_RECORD rec, cxx_exception_frame* frame
if
(
rec
->
ExceptionCode
==
CXX_EXCEPTION
)
if
(
rec
->
ExceptionCode
==
CXX_EXCEPTION
)
{
{
if
(
rec
->
ExceptionInformation
[
1
]
==
0
&&
rec
->
ExceptionInformation
[
2
]
==
0
)
{
EXCEPTION_RECORD
*
exc_record
=
msvcrt_get_thread_data
()
->
exc_record
;
rec
->
ExceptionInformation
[
1
]
=
exc_record
->
ExceptionInformation
[
1
];
rec
->
ExceptionInformation
[
2
]
=
exc_record
->
ExceptionInformation
[
2
];
TRACE
(
"detect rethrow: obj: %lx, type: %lx
\n
"
,
rec
->
ExceptionInformation
[
1
],
rec
->
ExceptionInformation
[
2
]);
}
exc_type
=
(
cxx_exception_type
*
)
rec
->
ExceptionInformation
[
2
];
exc_type
=
(
cxx_exception_type
*
)
rec
->
ExceptionInformation
[
2
];
if
(
rec
->
ExceptionInformation
[
0
]
>
CXX_FRAME_MAGIC_VC8
&&
if
(
rec
->
ExceptionInformation
[
0
]
>
CXX_FRAME_MAGIC_VC8
&&
...
...
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