Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/Common/ListFileUtils.cpp')
-rwxr-xr-xCPP/Common/ListFileUtils.cpp7
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))