vm: fix windows compile errors

db4
Joe Groff 2011-10-19 21:05:35 -07:00
parent d6a06cf5dc
commit 7f3d70f97f
1 changed files with 3 additions and 1 deletions

View File

@ -277,11 +277,13 @@ VM_C_API BOOL ctrl_handler(DWORD dwCtrlType)
factor_vm *vm = current_vm_p();
if (vm != NULL)
return vm->ctrl_handler(dwCtrlType);
else
return FALSE;
}
void factor_vm::open_console()
{
SetConsoleCtrlHandler(ctrl_handler, TRUE);
SetConsoleCtrlHandler(factor::ctrl_handler, TRUE);
}
}