From b96bf49306e061197058b725f5b44e8294e12486 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 7 Oct 2009 13:37:07 +0200 Subject: [PATCH] rom loader: also try filename as-is. In case qemu_find_file fails try to open the file as-is. Patchworks-ID: 35263 Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori --- hw/loader.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index f38b994a51..7aa1a676e6 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -559,8 +559,7 @@ int rom_add_file(const char *file, rom->name = qemu_strdup(file); rom->path = qemu_find_file(QEMU_FILE_TYPE_BIOS, rom->name); if (rom->path == NULL) { - fprintf(stderr, "Could not find option rom '%s'\n", rom->name); - goto err; + rom->path = strdup(file); } fd = open(rom->path, O_RDONLY | O_BINARY); -- 2.11.0