VM: signal_fault_pc probably should be set here...

db4
Björn Lindqvist 2015-08-26 11:58:39 +02:00
parent 10464e7e4e
commit 2a852915d2
1 changed files with 1 additions and 0 deletions

View File

@ -195,6 +195,7 @@ LONG factor_vm::exception_handler(PEXCEPTION_RECORD e, void* frame, PCONTEXT c,
switch (e->ExceptionCode) {
case EXCEPTION_ACCESS_VIOLATION:
signal_fault_addr = e->ExceptionInformation[1];
signal_fault_pc = c->EIP;
verify_memory_protection_error(signal_fault_addr);
dispatch_signal_handler((cell*)&c->ESP, (cell*)&c->EIP,
(cell)factor::memory_signal_handler_impl);