Commit 5260a81e authored by Alexandre Julliard's avatar Alexandre Julliard

shell32: Allocate the right size for an ITEMIDLIST.

Spotted by Eric Pouech.
parent 876742bf
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment