used GetLastChar instead of GetEndChar

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2022-08-04 10:48:07 +08:00
parent 2c29ff13ab
commit eca08f0ae7

View File

@ -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);//防止查询名称内仍有路径