aboutsummaryrefslogtreecommitdiffstats
path: root/core/fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/fs.c')
-rw-r--r--core/fs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fs.c b/core/fs.c
index 03abfd6f..0bfa1557 100644
--- a/core/fs.c
+++ b/core/fs.c
@@ -64,7 +64,7 @@ void searchdir(com32sys_t *regs)
char *filename = (char *)MK_PTR(regs->ds, regs->edi.w[0]);;
struct file file;
-#if 0
+#if 1
printf("filename: %s\n", filename);
#endif
@@ -74,7 +74,7 @@ void searchdir(com32sys_t *regs)
this_fs->fs_ops->searchdir(filename, &file);
regs->esi.w[0] = OFFS_WRT(file.open_file, 0);
regs->eax.l = file.file_len;
- if (file.file_len)
+ if (file.open_file)
regs->eflags.l &= ~EFLAGS_ZF;
else
regs->eflags.l |= EFLAGS_ZF;