changeset 411:ce9b314b6e43 src

If there is no VMGI or PGCI return instead of try to get them If there is no menu there isn't much point in trying to jump to them.
author erik
date Fri, 30 Jul 2010 23:34:24 +0000
parents 799f85209145
children 34e632fb6a39
files vm/vm.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vm/vm.c	Fri Jul 30 23:34:19 2010 +0000
+++ b/vm/vm.c	Fri Jul 30 23:34:24 2010 +0000
@@ -619,7 +619,9 @@
       (vm->state).domain = VTSM_DOMAIN;
       break;
     }
-    if(get_PGCIT(vm) && set_MENU(vm, menuid)) {
+    if(vm->vmgi == NULL || vm->vmgi->pgci_ut == NULL)
+      return 0;
+    else if(get_PGCIT(vm) && set_MENU(vm, menuid)) {
       process_command(vm, play_PGC(vm));
       return 1;  /* Jump */
     } else {