mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 13:14:59 -06:00
Update to 7-Zip Version 21.02
This commit is contained in:
@@ -333,16 +333,25 @@ STDMETHODIMP CHandler::GetProperty(UInt32 index, PROPID propID, PROPVARIANT *val
|
||||
{
|
||||
case kpidPath:
|
||||
{
|
||||
// Windows BDP partitions can have identical names.
|
||||
// So we add the partition number at front
|
||||
UString s;
|
||||
for (unsigned i = 0; i < kNameLen; i++)
|
||||
s.Add_UInt32(index);
|
||||
{
|
||||
wchar_t c = (wchar_t)Get16(item.Name + i * 2);
|
||||
if (c == 0)
|
||||
break;
|
||||
s += c;
|
||||
UString s2;
|
||||
for (unsigned i = 0; i < kNameLen; i++)
|
||||
{
|
||||
wchar_t c = (wchar_t)Get16(item.Name + i * 2);
|
||||
if (c == 0)
|
||||
break;
|
||||
s2 += c;
|
||||
}
|
||||
if (!s2.IsEmpty())
|
||||
{
|
||||
s += '.';
|
||||
s += s2;
|
||||
}
|
||||
}
|
||||
if (s.IsEmpty())
|
||||
s.Add_UInt32(index);
|
||||
{
|
||||
s += '.';
|
||||
const char *ext = NULL;
|
||||
|
||||
Reference in New Issue
Block a user