aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/sys/openmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/lib/sys/openmem.c')
-rw-r--r--com32/lib/sys/openmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/lib/sys/openmem.c b/com32/lib/sys/openmem.c
index 33b8de0d..a56a4af8 100644
--- a/com32/lib/sys/openmem.c
+++ b/com32/lib/sys/openmem.c
@@ -52,9 +52,9 @@ int openmem(const void *base, size_t len, int flags)
fp = &__file_info[fd];
- fp->i.length = fp->i.nbytes = len;
+ fp->i.fd.size = fp->i.nbytes = len;
fp->i.datap = (void *)base;
- fp->i.filedes = 0; /* No actual file */
+ fp->i.fd.handle = 0; /* No actual file */
fp->i.offset = 0;
return fd;