]> xenbits.xensource.com Git - qemu-xen-3.3-testing.git/commitdiff
win32 fix
authorbellard <bellard>
Sun, 7 May 2006 18:06:27 +0000 (18:06 +0000)
committerbellard <bellard>
Sun, 7 May 2006 18:06:27 +0000 (18:06 +0000)
loader.c

index b2d6423fed0979f01bf7c21b9ddd68b1eb216983..3fa681dbb0c4fd93fec62336c03d42b98329d994 100644 (file)
--- a/loader.c
+++ b/loader.c
@@ -200,7 +200,7 @@ int load_elf(const char *filename, int64_t virt_to_phys_addend,
     int fd, data_order, must_swab, ret;
     uint8_t e_ident[EI_NIDENT];
 
-    fd = open(filename, O_RDONLY);
+    fd = open(filename, O_RDONLY | O_BINARY);
     if (fd < 0) {
         perror(filename);
         return -1;