From 2ed37d2e5993216f54abcee540842e578c01398b Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 7 Aug 2022 18:40:00 +0200 Subject: bump internal version --- sftsr.c | 12 +++++------- version.h | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/sftsr.c b/sftsr.c index 05e9f46..79c4458 100644 --- a/sftsr.c +++ b/sftsr.c @@ -238,10 +238,10 @@ static inline bool translate_filename_from_host(SHFLSTRING *str, bool case_insen { bool valid = utf8_to_local(&data, str->ach, str->ach, &str->u16Length); - if (uppercase) - { + if (uppercase) { valid = (nls_uppercase(str) || case_insensitive) && valid; } + return valid; } @@ -1103,12 +1103,11 @@ static vboxerr find_next_from_vbox(unsigned openfile, char __far *path) if (!valid) { // Should not happen as Windows short names are pure ascii dputs("hiding file with illegal character(s)"); - continue; + continue; } shfldirinfo.dirinfo.name.u16Length = shfldirinfo.dirinfo.cucShortName; dprintf(" Host short filename: '%s'\n", shfldirinfo.dirinfo.name.ach); - } - else { + } else { valid = translate_filename_from_host(&shfldirinfo.dirinfo.name, case_insensitive, true); } @@ -1117,8 +1116,7 @@ static vboxerr find_next_from_vbox(unsigned openfile, char __far *path) dputs("Mangling long filename"); mangle_to_8_3_filename(hash, found_file->filename, &shfldirinfo.dirinfo.name); } - } - else { + } else { dputs("Mangling filename with illegal character(s)"); mangle_to_8_3_filename(hash, found_file->filename, &shfldirinfo.dirinfo.name); } diff --git a/version.h b/version.h index 5eb4b8e..3b17d3c 100644 --- a/version.h +++ b/version.h @@ -2,6 +2,6 @@ #define VERSION_H #define VERSION_MAJOR 0 -#define VERSION_MINOR 0x56 +#define VERSION_MINOR 0x61 #endif // VERSION_H -- cgit v1.2.3