shell32: Do nothing if we can't convert PIDL to path in SHAddToRecentDocs (wine commit from Vincent Povirk)

svn path=/trunk/; revision=72559
This commit is contained in:
Christoph von Wittich 2016-09-04 07:08:50 +00:00
parent 4025100ad8
commit 55a37c4abb

View file

@ -800,7 +800,11 @@ void WINAPI SHAddToRecentDocs (UINT uFlags,LPCVOID pv)
switch (uFlags)
{
case SHARD_PIDL:
SHGetPathFromIDListA(pv, doc_name);
if (!SHGetPathFromIDListA(pv, doc_name))
{
WARN("can't get path from PIDL\n");
return;
}
break;
case SHARD_PATHA: