diff options
Diffstat (limited to 'com32')
-rw-r--r-- | com32/include/syslinux/pmapi.h | 2 | ||||
-rw-r--r-- | com32/lib/sys/open.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/com32/include/syslinux/pmapi.h b/com32/include/syslinux/pmapi.h index e96b8ec0..14a2c326 100644 --- a/com32/include/syslinux/pmapi.h +++ b/com32/include/syslinux/pmapi.h @@ -57,7 +57,7 @@ struct com32_pmapi { void *(*lmalloc)(size_t); void (*lfree)(void *); - int (*open_file)(const char *, struct com32_filedata *); + int (*open_file)(const char *, int, struct com32_filedata *); size_t (*read_file)(uint16_t *, void *, size_t); void (*close_file)(uint16_t); diff --git a/com32/lib/sys/open.c b/com32/lib/sys/open.c index 3e7bb6cf..b4673b20 100644 --- a/com32/lib/sys/open.c +++ b/com32/lib/sys/open.c @@ -61,7 +61,7 @@ int open(const char *pathname, int flags, ...) fp = &__file_info[fd]; - handle = __com32.cs_pm->open_file(pathname, &fp->i.fd); + handle = __com32.cs_pm->open_file(pathname, flags, &fp->i.fd); if (handle < 0) { close(fd); errno = ENOENT; |