This commit is contained in:
Igor Pavlov
2021-07-22 23:00:14 +01:00
committed by Kornel
parent 4a960640a3
commit 585698650f
619 changed files with 34904 additions and 10859 deletions

View File

@@ -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;