vm: fix windows compile errors
parent
d6a06cf5dc
commit
7f3d70f97f
|
@ -277,11 +277,13 @@ VM_C_API BOOL ctrl_handler(DWORD dwCtrlType)
|
||||||
factor_vm *vm = current_vm_p();
|
factor_vm *vm = current_vm_p();
|
||||||
if (vm != NULL)
|
if (vm != NULL)
|
||||||
return vm->ctrl_handler(dwCtrlType);
|
return vm->ctrl_handler(dwCtrlType);
|
||||||
|
else
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void factor_vm::open_console()
|
void factor_vm::open_console()
|
||||||
{
|
{
|
||||||
SetConsoleCtrlHandler(ctrl_handler, TRUE);
|
SetConsoleCtrlHandler(factor::ctrl_handler, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue