aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/readdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/lib/readdir.c')
-rw-r--r--com32/lib/readdir.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/com32/lib/readdir.c b/com32/lib/readdir.c
index 7fca4761..6c95bd6d 100644
--- a/com32/lib/readdir.c
+++ b/com32/lib/readdir.c
@@ -13,16 +13,14 @@
struct dirent *readdir(DIR * dir)
{
- struct dirent *newde = NULL;;
+ struct dirent *newde;
com32sys_t regs;
- if ((dir !=NULL) && (dir->dd_sect != 0) && (dir->dd_stat != 0xffff)) {
memset(&regs, 0, sizeof(regs));
regs.eax.w[0] = 0x0021;
regs.esi.l = (uint32_t)dir;
__com32.cs_intcall(0x22, &regs, &regs);
newde = (struct dirent *)(regs.eax.l);
- }
return newde;
}