diff --git a/dlls/shell32/shelllink.c b/dlls/shell32/shelllink.c index 25f0753a05a..61885ed6bfa 100644 --- a/dlls/shell32/shelllink.c +++ b/dlls/shell32/shelllink.c @@ -1744,7 +1744,10 @@ static HRESULT WINAPI IShellLinkW_fnGetIDList(IShellLinkW * iface, LPITEMIDLIST TRACE("(%p)->(ppidl=%p)\n",This, ppidl); if (!This->pPidl) + { + *ppidl = NULL; return S_FALSE; + } *ppidl = ILClone(This->pPidl); return S_OK; }