aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/sys/fileclose.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/lib/sys/fileclose.c')
-rw-r--r--com32/lib/sys/fileclose.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/com32/lib/sys/fileclose.c b/com32/lib/sys/fileclose.c
index e005567e..e2c929f2 100644
--- a/com32/lib/sys/fileclose.c
+++ b/com32/lib/sys/fileclose.c
@@ -38,15 +38,8 @@
int __file_close(struct file_info *fp)
{
- com32sys_t regs;
-
- if (fp->i.filedes) {
- memset(&regs, 0, sizeof regs);
- regs.eax.w[0] = 0x0008; /* Close file */
- regs.esi.w[0] = fp->i.filedes;
-
- __com32.cs_intcall(0x22, &regs, NULL);
- }
+ if (fp->i.fd.handle)
+ __com32.cs_pm->close_file(fp->i.fd.handle);
return 0;
}