mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-07 13:15:04 -06:00
15.05
This commit is contained in:
committed by
Kornel Lesiński
parent
0713a3ab80
commit
54490d51d5
@@ -114,7 +114,7 @@ bool CItem::IsDir() const
|
||||
case NHostOS::kMVS:
|
||||
return false; // change it throw kUnknownAttributes;
|
||||
case NHostOS::kUnix:
|
||||
return (highAttrib & NUnixAttrib::kIFDIR) != 0;
|
||||
return ((highAttrib & NUnixAttrib::kIFMT) == NUnixAttrib::kIFDIR);
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
@@ -130,6 +130,11 @@ UInt32 CItem::GetWinAttrib() const
|
||||
if (FromCentral)
|
||||
winAttrib = ExternalAttrib;
|
||||
break;
|
||||
case NHostOS::kUnix:
|
||||
// do we need to clear 16 low bits in this case?
|
||||
if (FromCentral)
|
||||
winAttrib = ExternalAttrib & 0xFFFF0000;
|
||||
break;
|
||||
}
|
||||
if (IsDir()) // test it;
|
||||
winAttrib |= FILE_ATTRIBUTE_DIRECTORY;
|
||||
|
||||
Reference in New Issue
Block a user