aboutsummaryrefslogtreecommitdiff
path: root/lfn.h
diff options
context:
space:
mode:
Diffstat (limited to 'lfn.h')
-rw-r--r--lfn.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lfn.h b/lfn.h
index 3f25330..ec50e75 100644
--- a/lfn.h
+++ b/lfn.h
@@ -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)
{