From eca08f0ae7aeaf81ab5818572b32051e16dd41a7 Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Thu, 4 Aug 2022 10:48:07 +0800 Subject: [PATCH] used GetLastChar instead of GetEndChar --- src/Win/EnumFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Win/EnumFile.cpp b/src/Win/EnumFile.cpp index 8d17a4a..78d81b3 100644 --- a/src/Win/EnumFile.cpp +++ b/src/Win/EnumFile.cpp @@ -73,7 +73,7 @@ namespace hgl { strcpy(fi.fullname, HGL_MAX_PATH, config->folder_name); - if(config->folder_name.GetEndChar()!=HGL_DIRECTORY_SEPARATOR) + if(config->folder_name.GetLastChar()!=HGL_DIRECTORY_SEPARATOR) strcat(fi.fullname, HGL_MAX_PATH, HGL_DIRECTORY_SEPARATOR); const int rp =config->find_name.FindChar(HGL_DIRECTORY_SEPARATOR);//防止查询名称内仍有路径