https://git.reactos.org/?p=reactos.git;a=commitdiff;h=39d5f1bf54a0f22fff618…
commit 39d5f1bf54a0f22fff618e269c0dd2711aacc7f8
Author: Jose Carlos Jesus <zecarlos1957(a)hotmail.com>
AuthorDate: Sun Apr 30 14:40:10 2023 +0100
Commit: GitHub <noreply(a)github.com>
CommitDate: Sun Apr 30 15:40:10 2023 +0200
[SHELL32] Enable Network Connection Rename (#5073)
CORE-18750
- Add Network Connection pidl type 0x99;
- Add binary comparison to pidl memory range.
---
dll/win32/shell32/debughlp.cpp | 1 +
dll/win32/shell32/wine/pidl.c | 6 +++++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/dll/win32/shell32/debughlp.cpp b/dll/win32/shell32/debughlp.cpp
index 6778418c7a8..388349c70a6 100644
--- a/dll/win32/shell32/debughlp.cpp
+++ b/dll/win32/shell32/debughlp.cpp
@@ -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",
diff --git a/dll/win32/shell32/wine/pidl.c b/dll/win32/shell32/wine/pidl.c
index 2ee8c4650fc..9ade43d1956 100644
--- a/dll/win32/shell32/wine/pidl.c
+++ b/dll/win32/shell32/wine/pidl.c
@@ -522,7 +522,11 @@ BOOL _ILHACKCompareSimpleIds(LPCITEMIDLIST pidltemp1, LPCITEMIDLIST
pidltemp2)
}
else
{
- return FALSE;
+ if ((pidltemp1->mkid.cb != pidltemp2->mkid.cb) ||
+ !RtlEqualMemory((BYTE*)&pidltemp1->mkid,
(BYTE*)&pidltemp2->mkid, pidltemp1->mkid.cb))
+ {
+ return FALSE;
+ }
}
return TRUE;