changeset 345:f051b111ef50 src

10l to me: in vm_get_current_menu() I forgot to attach Erik's patch that returned 0 if get_PGCIT() fails
author nicodvb
date Tue, 22 Apr 2008 07:36:49 +0000
parents fb2fbd4cfbf6
children e14f453bb208
files vm/vm.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vm/vm.c	Sun Apr 20 08:29:02 2008 +0000
+++ b/vm/vm.c	Tue Apr 22 07:36:49 2008 +0000
@@ -612,6 +612,7 @@
   int pgcn;
   pgcn = (vm->state).pgcN;
   pgcit = get_PGCIT(vm);
+  if(pgcit==NULL) return 0;
   *menuid = pgcit->pgci_srp[pgcn - 1].entry_id & 0xf ;
   return 1;
 }