diff options
Diffstat (limited to 'CPP/Common/ListFileUtils.cpp')
-rwxr-xr-x | CPP/Common/ListFileUtils.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/CPP/Common/ListFileUtils.cpp b/CPP/Common/ListFileUtils.cpp index c1c682a2..f9bd18ed 100755 --- a/CPP/Common/ListFileUtils.cpp +++ b/CPP/Common/ListFileUtils.cpp @@ -9,15 +9,16 @@ #include "StringConvert.h" #include "UTFConvert.h" -static const char kQuoteChar = '\"'; +static const char kQuoteChar = '\"'; + static void RemoveQuote(UString &s) { if (s.Length() >= 2) - if (s[0] == kQuoteChar && s[s.Length() - 1] == kQuoteChar) + if (s[0] == kQuoteChar && s.Back() == kQuoteChar) s = s.Mid(1, s.Length() - 2); } -bool ReadNamesFromListFile(LPCWSTR fileName, UStringVector &resultStrings, UINT codePage) +bool ReadNamesFromListFile(CFSTR fileName, UStringVector &resultStrings, UINT codePage) { NWindows::NFile::NIO::CInFile file; if (!file.Open(fileName)) |