Commit 096b7ea42b5881de142781e86f06a6879cebd373

Authored by bellard
1 parent d5a8f07c

win32 load_kernel() fix


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1075 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
... ... @@ -283,7 +283,7 @@ int load_kernel(const char *filename, uint8_t *addr,
283 283 int fd, size;
284 284 int setup_sects;
285 285  
286   - fd = open(filename, O_RDONLY);
  286 + fd = open(filename, O_RDONLY | O_BINARY);
287 287 if (fd < 0)
288 288 return -1;
289 289  
... ...