diff options
| author | Javier <dev.git@javispedro.com> | 2026-11-29 18:53:52 +0100 |
|---|---|---|
| committer | Javier <dev.git@javispedro.com> | 2026-11-29 18:53:52 +0100 |
| commit | 5898f13480921e1c1ab362852f88794ea955ffce (patch) | |
| tree | fec95835799d78708c49ea144e1955a7d22f9ede /lfn.h | |
| parent | 8e9df5624d56a91eaa71a1ceac4932b7c5c5ee48 (diff) | |
| download | vbados-5898f13480921e1c1ab362852f88794ea955ffce.tar.gz vbados-5898f13480921e1c1ab362852f88794ea955ffce.zip | |
vbsf: add ability to build without hashing of long filenames
Diffstat (limited to 'lfn.h')
| -rw-r--r-- | lfn.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -25,6 +25,8 @@ #include "vboxshfl.h" #include "sftsr.h" +#if USE_LFN_TO_SHORT + #define REVERSE_HASH 1 static inline bool translate_filename_from_host(SHFLSTRING *, bool, bool); @@ -426,6 +428,14 @@ return_name: return len; } +#else +static uint16_t get_true_host_name_n(TSRDATAPTR data, int drive, uint8_t *dst, char __far *src, uint16_t buflen, uint16_t count) +{ + // Do unicode conversion but not LFN + return local_to_utf8_n(data, dst, src, buflen, count); +} + +#endif // USE_LFN_TO_SHORT static inline uint16_t get_true_host_name(TSRDATAPTR data, int drive, uint8_t *dst, char __far *src, uint16_t buflen) { |
