Fix network on windows

This commit is contained in:
2023-02-06 14:16:35 +00:00
parent e1f01e0156
commit 6a479621e9
5 changed files with 6 additions and 10 deletions

View File

@@ -55,7 +55,7 @@ vdisk_raw_write(void *userdata, void *buffer, off_t startsector,
struct vdisk*
vdisk_init_raw(const char *fname, struct umka_io *io) {
int fd = open(fname, O_RDONLY);
int fd = open(fname, O_RDONLY | O_BINARY);
if (!fd) {
printf("[vdisk.raw]: can't open file '%s': %s\n", fname, strerror(errno));
return NULL;