shell32: Do nothing if we can't convert PIDL to path in SHAddToRecentDocs.
This commit is contained in:
parent
d79de513f7
commit
69d57ee72f
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue