From: bellard Date: Wed, 29 Sep 2004 21:19:16 +0000 (+0000) Subject: win32 load_kernel() fix X-Git-Tag: qemu-xen-4.3.0-rc1~15197 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=096b7ea42b5881de142781e86f06a6879cebd373;p=qemu-upstream-unstable.git win32 load_kernel() fix git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1075 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/hw/pc.c b/hw/pc.c index f59ea2397..305ea1f5b 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -283,7 +283,7 @@ int load_kernel(const char *filename, uint8_t *addr, int fd, size; int setup_sects; - fd = open(filename, O_RDONLY); + fd = open(filename, O_RDONLY | O_BINARY); if (fd < 0) return -1;