1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

shell32: Allocate a full SHITEMID to avoid a compiler warning.

This commit is contained in:
Alexandre Julliard 2023-01-24 22:22:52 +01:00
parent cf3d58e4dc
commit c844ebdb0a

View file

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