diff options
Diffstat (limited to 'CPP/Common/ListFileUtils.cpp')
| -rw-r--r-- | CPP/Common/ListFileUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CPP/Common/ListFileUtils.cpp b/CPP/Common/ListFileUtils.cpp index b361b37..e43dbc9 100644 --- a/CPP/Common/ListFileUtils.cpp +++ b/CPP/Common/ListFileUtils.cpp | |||
| @@ -66,7 +66,7 @@ bool ReadNamesFromListFile2(CFSTR fileName, UStringVector &strings, UINT codePag | |||
| 66 | if (fileSize >= ((UInt32)1 << 31) - 32) | 66 | if (fileSize >= ((UInt32)1 << 31) - 32) |
| 67 | return false; | 67 | return false; |
| 68 | UString u; | 68 | UString u; |
| 69 | if (codePage == MY__CP_UTF16 || codePage == MY__CP_UTF16BE) | 69 | if (codePage == Z7_WIN_CP_UTF16 || codePage == Z7_WIN_CP_UTF16BE) |
| 70 | { | 70 | { |
| 71 | if ((fileSize & 1) != 0) | 71 | if ((fileSize & 1) != 0) |
| 72 | return false; | 72 | return false; |
| @@ -78,7 +78,7 @@ bool ReadNamesFromListFile2(CFSTR fileName, UStringVector &strings, UINT codePag | |||
| 78 | file.Close(); | 78 | file.Close(); |
| 79 | const unsigned num = (unsigned)fileSize / 2; | 79 | const unsigned num = (unsigned)fileSize / 2; |
| 80 | wchar_t *p = u.GetBuf(num); | 80 | wchar_t *p = u.GetBuf(num); |
| 81 | if (codePage == MY__CP_UTF16) | 81 | if (codePage == Z7_WIN_CP_UTF16) |
| 82 | for (unsigned i = 0; i < num; i++) | 82 | for (unsigned i = 0; i < num; i++) |
| 83 | { | 83 | { |
| 84 | wchar_t c = GetUi16(buf + (size_t)i * 2); | 84 | wchar_t c = GetUi16(buf + (size_t)i * 2); |
