vm: fix SEH on Windows

release
Slava Pestov 2010-03-28 17:57:47 -05:00
parent bddbcd24cd
commit 46ec4ff093
1 changed files with 1 additions and 5 deletions

View File

@ -75,11 +75,7 @@ LONG factor_vm::exception_handler(PEXCEPTION_POINTERS pe)
CONTEXT *c = (CONTEXT*)pe->ContextRecord; CONTEXT *c = (CONTEXT*)pe->ContextRecord;
c->ESP = (cell)fix_callstack_top((stack_frame *)c->ESP); c->ESP = (cell)fix_callstack_top((stack_frame *)c->ESP);
if(in_code_heap_p(c->EIP))
signal_callstack_top = (stack_frame *)c->ESP; signal_callstack_top = (stack_frame *)c->ESP;
else
signal_callstack_top = NULL;
switch (e->ExceptionCode) switch (e->ExceptionCode)
{ {