aboutsummaryrefslogtreecommitdiff
path: root/sftsr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sftsr.c')
-rw-r--r--sftsr.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sftsr.c b/sftsr.c
index fb41431..4e47109 100644
--- a/sftsr.c
+++ b/sftsr.c
@@ -1043,6 +1043,15 @@ static vboxerr find_next_from_vbox(unsigned openfile, const char __far *path)
copy_drive_relative_filename(&shflstr.shflstr, path);
translate_filename_to_host(&shflstr.shflstr);
fix_wildcards(&shflstr.shflstr);
+
+ dlog_print("fixed path=");
+ dlog_print(shflstr.buf);
+ dlog_endline();
+
+ if (shflstr.shflstr.ach[shflstr.shflstr.u16Length-1] == '\\') {
+ // No wildcard?
+ return VERR_NO_MORE_FILES;
+ }
} else {
// For find next calls, it's not really important what we pass here,
// as long as it's not empty.