diff options
author | Igor Pavlov <ipavlov@users.sourceforge.net> | 2010-06-20 04:00:00 +0400 |
---|---|---|
committer | Kornel LesiĆski <kornel@geekhood.net> | 2016-05-28 02:16:03 +0300 |
commit | e279500d76f1944ba26526f085030909a2c7ef49 (patch) | |
tree | 130291a48634b2918c6749be8ea360d15e1e202b /CPP/7zip/Archive/Cab | |
parent | 708873490ee36691d84cc06336aac87c5129f8a0 (diff) |
9.159.15
Diffstat (limited to 'CPP/7zip/Archive/Cab')
-rwxr-xr-x | CPP/7zip/Archive/Cab/CabHandler.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/CPP/7zip/Archive/Cab/CabHandler.cpp b/CPP/7zip/Archive/Cab/CabHandler.cpp index 9fb91423..20f670d3 100755 --- a/CPP/7zip/Archive/Cab/CabHandler.cpp +++ b/CPP/7zip/Archive/Cab/CabHandler.cpp @@ -41,7 +41,7 @@ enum }; #endif -STATPROPSTG kProps[] = +static STATPROPSTG kProps[] = { { NULL, kpidPath, VT_BSTR}, { NULL, kpidSize, VT_UI8}, @@ -57,18 +57,18 @@ STATPROPSTG kProps[] = #endif }; -static const wchar_t *kMethods[] = +static const char *kMethods[] = { - L"None", - L"MSZip", - L"Quantum", - L"LZX" + "None", + "MSZip", + "Quantum", + "LZX" }; static const int kNumMethods = sizeof(kMethods) / sizeof(kMethods[0]); -static const wchar_t *kUnknownMethod = L"Unknown"; +static const char *kUnknownMethod = "Unknown"; -STATPROPSTG kArcProps[] = +static STATPROPSTG kArcProps[] = { { NULL, kpidMethod, VT_BSTR}, // { NULL, kpidSolid, VT_BOOL}, @@ -87,7 +87,7 @@ STDMETHODIMP CHandler::GetArchiveProperty(PROPID propID, PROPVARIANT *value) { case kpidMethod: { - UString resString; + AString resString; CRecordVector<Byte> ids; int i; for (int v = 0; v < m_Database.Volumes.Size(); v++) @@ -99,9 +99,9 @@ STDMETHODIMP CHandler::GetArchiveProperty(PROPID propID, PROPVARIANT *value) for (i = 0; i < ids.Size(); i++) { Byte id = ids[i]; - UString method = (id < kNumMethods) ? kMethods[id] : kUnknownMethod; + AString method = (id < kNumMethods) ? kMethods[id] : kUnknownMethod; if (!resString.IsEmpty()) - resString += L' '; + resString += ' '; resString += method; } prop = resString; @@ -171,12 +171,12 @@ STDMETHODIMP CHandler::GetProperty(UInt32 index, PROPID propID, PROPVARIANT *va UInt32 realFolderIndex = item.GetFolderIndex(db.Folders.Size()); const CFolder &folder = db.Folders[realFolderIndex]; int methodIndex = folder.GetCompressionMethod(); - UString method = (methodIndex < kNumMethods) ? kMethods[methodIndex] : kUnknownMethod; + AString method = (methodIndex < kNumMethods) ? kMethods[methodIndex] : kUnknownMethod; if (methodIndex == NHeader::NCompressionMethodMajor::kLZX || methodIndex == NHeader::NCompressionMethodMajor::kQuantum) { - method += L":"; - wchar_t temp[32]; + method += ':'; + char temp[32]; ConvertUInt64ToString(folder.CompressionTypeMinor, temp); method += temp; } |