mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-26 21:10:42 +00:00
vl: Prevent selection of HDD image as DVD image
This commit is contained in:
parent
38950d7e8c
commit
1e73bf5325
@ -2853,7 +2853,7 @@ void qemu_init(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (strlen(dvd_path) > 0) {
|
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);
|
char *msg = g_strdup_printf("Failed to open DVD image file '%s'. Please check machine settings.", dvd_path);
|
||||||
xemu_queue_error_message(msg);
|
xemu_queue_error_message(msg);
|
||||||
g_free(msg);
|
g_free(msg);
|
||||||
|
Loading…
Reference in New Issue
Block a user