shell32: Allocate the right size for an ITEMIDLIST.

Spotted by Eric Pouech.
This commit is contained in:
Alexandre Julliard 2023-01-26 10:37:11 +01:00
parent 876742bf2b
commit 5260a81edc

View file

@ -347,7 +347,7 @@ IShellFolder_fnParseDisplayName (IShellFolder2 * iface,
/* Special case for the root folder. */
if (!wcsicmp( szPath, L"\\\\?\\unix\\" ))
{
*ppidl = SHAlloc(sizeof(*ppidl));
*ppidl = SHAlloc(sizeof(**ppidl));
if (!*ppidl) return E_FAIL;
(*ppidl)->mkid.cb = 0; /* Terminate the ITEMIDLIST */
return S_OK;