aboutsummaryrefslogtreecommitdiff
path: root/hw/loader.c
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2009-10-10 19:02:40 +0400
committermalc <av1474@comtv.ru>2009-10-10 19:02:40 +0400
commitcef290b8782b8363e80cc368a554125c5f24ec04 (patch)
treedc0dee2d2f1cbfff29321a8f24b07c26c4116363 /hw/loader.c
parente0bda367e575bc18d2c848b397f0ee10f9157dc7 (diff)
downloadqemu-cef290b8782b8363e80cc368a554125c5f24ec04.zip
qemu-cef290b8782b8363e80cc368a554125c5f24ec04.tar.gz
qemu-cef290b8782b8363e80cc368a554125c5f24ec04.tar.bz2
Fix Windows host breakage by 45a50b1668822c23afc2a89f724654e176518bc4 (TeLeMan)
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'hw/loader.c')
-rw-r--r--hw/loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/loader.c b/hw/loader.c
index c436ec6..03cc7d5 100644
--- a/hw/loader.c
+++ b/hw/loader.c
@@ -563,7 +563,7 @@ int rom_add_file(const char *file,
goto err;
}
- fd = open(rom->path, O_RDONLY);
+ fd = open(rom->path, O_RDONLY | O_BINARY);
if (fd == -1) {
fprintf(stderr, "Could not open option rom '%s': %s\n",
rom->path, strerror(errno));