mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:39:34 +00:00
shell32: Allocate the right size for an ITEMIDLIST.
Spotted by Eric Pouech.
This commit is contained in:
parent
876742bf2b
commit
5260a81edc
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue