Skip to content

Commit

Permalink
vl: Prevent selection of HDD image as DVD image
Browse files Browse the repository at this point in the history
  • Loading branch information
antangelo authored and mborgerson committed Oct 12, 2023
1 parent 38950d7 commit 1e73bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion softmmu/vl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1e73bf5

Please sign in to comment.