From 867ca972469d8fe2018468cad8b15529255bc251 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Tue, 24 Jan 2017 16:30:17 -0500 Subject: [PATCH] win32 finder_info_helper. --- finder_info_helper.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/finder_info_helper.cpp b/finder_info_helper.cpp index 34b5ecd..58170d6 100644 --- a/finder_info_helper.cpp +++ b/finder_info_helper.cpp @@ -362,6 +362,11 @@ int afp_to_filetype(struct AFP_Info *info, uint16_t *file_type, uint32_t *aux_ty return 0; } +enum { + trust_prodos, + trust_hfs +}; + void afp_synchronize(struct AFP_Info *info, int trust) { // if ftype/auxtype is inconsistent between prodos and finder info, use // prodos as source of truth. @@ -422,7 +427,7 @@ bool finder_info_helper::read(int fd) { return false; } if (!_afp.prodos_file_type && !_afp.prodos_aux_type) - afp_synchronize(&afp, trust_hfs); + afp_synchronize(&_afp, trust_hfs); #else int ok = fi_read(fd, &_finder_info, sizeof(_finder_info)); if (ok < 0) {