Commit da996311 authored by Piotr Caban's avatar Piotr Caban Committed by Michael Stefaniuc

msvcrt: Handle frames with CXX_FRAME_MAGIC_VC6 and CXX_FRAME_MAGIC_VC7 magic value.

Signed-off-by: 's avatarPiotr Caban <piotr@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org> (cherry picked from commit 953d6c88) Signed-off-by: 's avatarMichael Stefaniuc <mstefani@winehq.org>
parent 8d69049c
...@@ -160,7 +160,9 @@ static void dump_function_descr(const cxx_function_descr *descr, ULONG64 image_b ...@@ -160,7 +160,9 @@ static void dump_function_descr(const cxx_function_descr *descr, ULONG64 image_b
} }
} }
TRACE("unwind_help %d\n", descr->unwind_help); TRACE("unwind_help %d\n", descr->unwind_help);
if (descr->magic <= CXX_FRAME_MAGIC_VC6) return;
TRACE("expect list: %x\n", descr->expect_list); TRACE("expect list: %x\n", descr->expect_list);
if (descr->magic <= CXX_FRAME_MAGIC_VC7) return;
TRACE("flags: %08x\n", descr->flags); TRACE("flags: %08x\n", descr->flags);
} }
...@@ -170,7 +172,7 @@ static DWORD cxx_frame_handler(EXCEPTION_RECORD *rec, ULONG64 frame, ...@@ -170,7 +172,7 @@ static DWORD cxx_frame_handler(EXCEPTION_RECORD *rec, ULONG64 frame,
{ {
cxx_exception_type *exc_type; cxx_exception_type *exc_type;
if (descr->magic != CXX_FRAME_MAGIC_VC8) if (descr->magic<CXX_FRAME_MAGIC_VC6 || descr->magic>CXX_FRAME_MAGIC_VC8)
{ {
FIXME("unhandled frame magic %x\n", descr->magic); FIXME("unhandled frame magic %x\n", descr->magic);
return ExceptionContinueSearch; return ExceptionContinueSearch;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment