patch-win_jtp_winjtp_c 494 B

123456789101112131415161718192021
  1. $OpenBSD: patch-win_jtp_winjtp_c,v 1.1 2017/05/07 14:40:40 espie Exp $
  2. Index: win/jtp/winjtp.c
  3. --- win/jtp/winjtp.c.orig
  4. +++ win/jtp/winjtp.c
  5. @@ -1504,12 +1504,12 @@ menu_item **menu_list;
  6. if (!tempwindow)
  7. {
  8. jtp_messagebox("ERROR: Can't find window for menu selection!");
  9. - return;
  10. + return(-1);
  11. }
  12. if (!tempwindow->menu)
  13. {
  14. jtp_messagebox("ERROR: Window does not have a menu!");
  15. - return;
  16. + return(-1);
  17. }
  18. tempwindow->menu->selectiontype = how;