mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
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:
parent
4025100ad8
commit
55a37c4abb
1 changed files with 5 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue