OSDN Git Service

Fix Windows host breakage by 45a50b1668822c23afc2a89f724654e176518bc4 (TeLeMan)
authormalc <av1474@comtv.ru>
Sat, 10 Oct 2009 15:02:40 +0000 (19:02 +0400)
committermalc <av1474@comtv.ru>
Sat, 10 Oct 2009 15:02:40 +0000 (19:02 +0400)
Signed-off-by: malc <av1474@comtv.ru>
hw/loader.c

index c436ec6..03cc7d5 100644 (file)
@@ -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));