diff options
-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)); |