shell32: Do nothing if we can't convert PIDL to path in SHAddToRecentDocs.

This commit is contained in:
Vincent Povirk 2015-09-14 15:08:36 -05:00 committed by Alexandre Julliard
parent d79de513f7
commit 69d57ee72f
1 changed files with 5 additions and 1 deletions

View File

@ -876,7 +876,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: