Fix a bug.

This commit is contained in:
Bruce
2026-04-11 22:42:04 +08:00
parent 5378e3d54b
commit ed0920b21b

View File

@@ -1808,6 +1808,7 @@ std::vector <std::wstring> LoadFileListW (const std::wstring &filePath)
std::wstring line;
while (std::getline (file, line))
{
line = std::wnstring::trim (line);
if (!line.empty () && line.back () == L'\r') line.pop_back ();
if (!line.empty () && !std::wnstring::empty (line) && IsFileExists (line)) result.push_back (line);
auto fullFile = CombinePath (GetFileDirectoryW (filePath), line);