qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 2/2] rom loader: also try filename as-is.


From: Gerd Hoffmann
Subject: [Qemu-devel] [PATCH 2/2] rom loader: also try filename as-is.
Date: Wed, 7 Oct 2009 13:37:07 +0200

In case qemu_find_file fails try to open the file as-is.

Signed-off-by: Gerd Hoffmann <address@hidden>
---
 hw/loader.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/hw/loader.c b/hw/loader.c
index 40112b9..4ce7c6a 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);
-- 
1.6.2.5





reply via email to

[Prev in Thread] Current Thread [Next in Thread]