diff options
author | malc <av1474@comtv.ru> | 2009-10-10 19:02:40 +0400 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2009-10-10 19:02:40 +0400 |
commit | cef290b8782b8363e80cc368a554125c5f24ec04 (patch) | |
tree | dc0dee2d2f1cbfff29321a8f24b07c26c4116363 /hw/loader.c | |
parent | e0bda367e575bc18d2c848b397f0ee10f9157dc7 (diff) | |
download | qemu-cef290b8782b8363e80cc368a554125c5f24ec04.tar.gz qemu-cef290b8782b8363e80cc368a554125c5f24ec04.tar.bz2 qemu-cef290b8782b8363e80cc368a554125c5f24ec04.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/loader.c b/hw/loader.c index c436ec6a33..03cc7d5f7e 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)); |