~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to qemu-io.c

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
595
595
                exit(1);
596
596
            }
597
597
            opts = qemu_opts_to_qdict(qopts, NULL);
598
 
            openfile(NULL, flags, writethrough, opts);
 
598
            if (openfile(NULL, flags, writethrough, opts)) {
 
599
                exit(1);
 
600
            }
599
601
        } else {
600
602
            if (format) {
601
603
                opts = qdict_new();
602
604
                qdict_put(opts, "driver", qstring_from_str(format));
603
605
            }
604
 
            openfile(argv[optind], flags, writethrough, opts);
 
606
            if (openfile(argv[optind], flags, writethrough, opts)) {
 
607
                exit(1);
 
608
            }
605
609
        }
606
610
    }
607
611
    command_loop();