aboutsummaryrefslogtreecommitdiff
path: root/sftsr.c
diff options
context:
space:
mode:
authorEduardo Casino <mail@eduardocasino.es>2022-05-21 18:03:51 +0200
committerJavier <dev.git@javispedro.com>2022-05-23 00:29:16 +0200
commitd9f2b325c2201e23ba1c877e95342a6e904ffd10 (patch)
tree9ed3acc6c9892e8edcf96efaa8718b9b234e0e05 /sftsr.c
parent7b243074da3f4be6ed47426925f203c547c1c729 (diff)
downloadvbados-d9f2b325c2201e23ba1c877e95342a6e904ffd10.tar.gz
vbados-d9f2b325c2201e23ba1c877e95342a6e904ffd10.zip
Fix find_first when search attr are 0
Diffstat (limited to 'sftsr.c')
-rw-r--r--sftsr.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sftsr.c b/sftsr.c
index 86fb5b9..51388f1 100644
--- a/sftsr.c
+++ b/sftsr.c
@@ -1124,14 +1124,6 @@ static void handle_find_first(union INTPACK __far *r)
dputs("search volid OK");
clear_dos_err(r);
return;
- } else if (search_attr == 0) {
- // Another hack to avoid leaking directory handles.
- // While technically a mask of 0 should return all files,
- // DOS's dir uses a mask of 0 when it just wants to check
- // if the directory exists, and will never call FindNext.
- // So we'll not bother opening the directory and hope nothing breaks.
- set_dos_err(r, DOS_ERROR_NO_MORE_FILES);
- return;
}
// First, open the desired directory for searching