aboutsummaryrefslogtreecommitdiff
path: root/CPP/7zip/Archive/Zip/ZipItem.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--CPP/7zip/Archive/Zip/ZipItem.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/CPP/7zip/Archive/Zip/ZipItem.cpp b/CPP/7zip/Archive/Zip/ZipItem.cpp
index a77643b..5684cac 100644
--- a/CPP/7zip/Archive/Zip/ZipItem.cpp
+++ b/CPP/7zip/Archive/Zip/ZipItem.cpp
@@ -55,15 +55,15 @@ void CExtraSubBlock::PrintInfo(AString &s) const
55 { 55 {
56 if (Data.Size() >= 1) 56 if (Data.Size() >= 1)
57 { 57 {
58 s += ':'; 58 s.Add_Colon();
59 const Byte flags = Data[0]; 59 const Byte flags = Data[0];
60 if (flags & 1) s += 'M'; 60 if (flags & 1) s.Add_Char('M');
61 if (flags & 2) s += 'A'; 61 if (flags & 2) s.Add_Char('A');
62 if (flags & 4) s += 'C'; 62 if (flags & 4) s.Add_Char('C');
63 const UInt32 size = (UInt32)(Data.Size()) - 1; 63 const UInt32 size = (UInt32)(Data.Size()) - 1;
64 if (size % 4 == 0) 64 if (size % 4 == 0)
65 { 65 {
66 s += ':'; 66 s.Add_Colon();
67 s.Add_UInt32(size / 4); 67 s.Add_UInt32(size / 4);
68 } 68 }
69 } 69 }
@@ -88,7 +88,7 @@ void CExtraSubBlock::PrintInfo(AString &s) const
88 } 88 }
89 } 89 }
90 { 90 {
91 char sz[32]; 91 char sz[16];
92 sz[0] = '0'; 92 sz[0] = '0';
93 sz[1] = 'x'; 93 sz[1] = 'x';
94 ConvertUInt32ToHex(ID, sz + 2); 94 ConvertUInt32ToHex(ID, sz + 2);
@@ -291,6 +291,7 @@ bool CItem::IsDir() const
291 case NHostOS::kHPFS: 291 case NHostOS::kHPFS:
292 case NHostOS::kVFAT: 292 case NHostOS::kVFAT:
293 return true; 293 return true;
294 default: break;
294 } 295 }
295 } 296 }
296 297
@@ -360,6 +361,7 @@ UInt32 CItem::GetWinAttrib() const
360 // #endif 361 // #endif
361 } 362 }
362 break; 363 break;
364 default: break;
363 } 365 }
364 if (IsDir()) // test it; 366 if (IsDir()) // test it;
365 winAttrib |= FILE_ATTRIBUTE_DIRECTORY; 367 winAttrib |= FILE_ATTRIBUTE_DIRECTORY;