Commit 699e4642a9df17591e7586c91921fc3d6b31616e

Authored by bellard
1 parent 64866c3d

win32 fix


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1908 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
loader.c
... ... @@ -200,7 +200,7 @@ int load_elf(const char *filename, int64_t virt_to_phys_addend,
200 200 int fd, data_order, must_swab, ret;
201 201 uint8_t e_ident[EI_NIDENT];
202 202  
203   - fd = open(filename, O_RDONLY);
  203 + fd = open(filename, O_RDONLY | O_BINARY);
204 204 if (fd < 0) {
205 205 perror(filename);
206 206 return -1;
... ...