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

Alexandre Julliard julliard at wine.codeweavers.com
Tue Sep 15 09:50:50 CDT 2015


Module: wine
Branch: master
Commit: 69d57ee72fb436270c52eac446f2deacb5de8e54
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=69d57ee72fb436270c52eac446f2deacb5de8e54

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Mon Sep 14 15:08:36 2015 -0500

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

---

 dlls/shell32/shellord.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dlls/shell32/shellord.c b/dlls/shell32/shellord.c
index 914dc5a..7387520 100644
--- a/dlls/shell32/shellord.c
+++ b/dlls/shell32/shellord.c
@@ -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:




More information about the wine-cvs mailing list