mirror of https://github.com/xemu-project/xemu.git
win32 fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1908 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
64866c3d5c
commit
699e4642a9
2
loader.c
2
loader.c
|
@ -200,7 +200,7 @@ int load_elf(const char *filename, int64_t virt_to_phys_addend,
|
||||||
int fd, data_order, must_swab, ret;
|
int fd, data_order, must_swab, ret;
|
||||||
uint8_t e_ident[EI_NIDENT];
|
uint8_t e_ident[EI_NIDENT];
|
||||||
|
|
||||||
fd = open(filename, O_RDONLY);
|
fd = open(filename, O_RDONLY | O_BINARY);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
perror(filename);
|
perror(filename);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue