提交 096b7ea4 编写于 作者: B bellard

win32 load_kernel() fix


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1075 c046a42c-6fe2-441c-8c8c-71466251a162
上级 d5a8f07c
...@@ -283,7 +283,7 @@ int load_kernel(const char *filename, uint8_t *addr, ...@@ -283,7 +283,7 @@ int load_kernel(const char *filename, uint8_t *addr,
int fd, size; int fd, size;
int setup_sects; int setup_sects;
fd = open(filename, O_RDONLY); fd = open(filename, O_RDONLY | O_BINARY);
if (fd < 0) if (fd < 0)
return -1; return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册