mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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
1 changed files with 1 additions and 1 deletions
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;
|
||||
uint8_t e_ident[EI_NIDENT];
|
||||
|
||||
fd = open(filename, O_RDONLY);
|
||||
fd = open(filename, O_RDONLY | O_BINARY);
|
||||
if (fd < 0) {
|
||||
perror(filename);
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue