[SHELL32] Enable Network Connection Rename (#5073)

CORE-18750
- Add Network Connection pidl type 0x99;
- Add binary comparison to pidl memory range.
This commit is contained in:
Jose Carlos Jesus 2023-04-30 14:40:10 +01:00 committed by GitHub
parent 5c8ec78b71
commit 39d5f1bf54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -379,6 +379,7 @@ BOOL pcheck( LPCITEMIDLIST pidl )
case PT_YAGUID:
case PT_IESPECIAL2:
case PT_SHARE:
case 0x99: /* Network Connection pidl type */
break;
default:
ERR("unknown IDLIST %p [%p] size=%u type=%x\n",

View file

@ -521,9 +521,13 @@ BOOL _ILHACKCompareSimpleIds(LPCITEMIDLIST pidltemp1, LPCITEMIDLIST pidltemp2)
return FALSE;
}
else
{
if ((pidltemp1->mkid.cb != pidltemp2->mkid.cb) ||
!RtlEqualMemory((BYTE*)&pidltemp1->mkid, (BYTE*)&pidltemp2->mkid, pidltemp1->mkid.cb))
{
return FALSE;
}
}
return TRUE;
}