aboutsummaryrefslogtreecommitdiff
path: root/hw/pc.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-09-29 21:19:16 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-09-29 21:19:16 +0000
commit096b7ea42b5881de142781e86f06a6879cebd373 (patch)
treeeb8c634e4ef84ac62055d97a3690f1d19abf91f0 /hw/pc.c
parentd5a8f07c52161a5d8021ace23029397475286eb2 (diff)
downloadqemu-096b7ea42b5881de142781e86f06a6879cebd373.zip
qemu-096b7ea42b5881de142781e86f06a6879cebd373.tar.gz
qemu-096b7ea42b5881de142781e86f06a6879cebd373.tar.bz2
win32 load_kernel() fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1075 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/pc.c')
-rw-r--r--hw/pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pc.c b/hw/pc.c
index f59ea23..305ea1f 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;