Commit 856f0f9d authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Handle non c++ exceptions in __DestructExceptionObject.

parent 8fda75fe
......@@ -400,6 +400,15 @@ void CDECL __DestructExceptionObject(EXCEPTION_RECORD *rec)
TRACE("(%p)\n", rec);
if (rec->ExceptionCode != CXX_EXCEPTION) return;
#ifndef __x86_64__
if (rec->NumberParameters != 3) return;
#else
if (rec->NumberParameters != 4) return;
#endif
if (rec->ExceptionInformation[0] < CXX_FRAME_MAGIC_VC6 ||
rec->ExceptionInformation[0] > CXX_FRAME_MAGIC_VC8) return;
if (!info || !info->destructor)
return;
......
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