Commit c844ebdb authored by Alexandre Julliard's avatar Alexandre Julliard

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

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