From 1e73bf532587185881a71d118910815b611e56b0 Mon Sep 17 00:00:00 2001 From: Antonio Abbatangelo Date: Tue, 22 Aug 2023 19:28:41 -0400 Subject: [PATCH] vl: Prevent selection of HDD image as DVD image --- softmmu/vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/softmmu/vl.c b/softmmu/vl.c index cdc485e3d30..badf207da0c 100644 --- a/softmmu/vl.c +++ b/softmmu/vl.c @@ -2853,7 +2853,7 @@ void qemu_init(int argc, char **argv) } if (strlen(dvd_path) > 0) { - if (xemu_check_file(dvd_path)) { + if (xemu_check_file(dvd_path) || strcmp(dvd_path, hdd_path) == 0) { char *msg = g_strdup_printf("Failed to open DVD image file '%s'. Please check machine settings.", dvd_path); xemu_queue_error_message(msg); g_free(msg);