Aric Stewart : shell32: IShellLink::GetIDList fix.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Feb 22 05:56:39 CST 2007


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

Author: Aric Stewart <aric at codeweavers.com>
Date:   Thu Feb 22 17:19:41 2007 +0900

shell32: IShellLink::GetIDList fix.

IShellLink::GetIDList when it fails to generate a PIDL must set ppidl
to NULL or some applications think it contains valid data.

---

 dlls/shell32/shelllink.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/shell32/shelllink.c b/dlls/shell32/shelllink.c
index 25f0753..61885ed 100644
--- a/dlls/shell32/shelllink.c
+++ b/dlls/shell32/shelllink.c
@@ -1744,7 +1744,10 @@ static HRESULT WINAPI IShellLinkW_fnGetIDList(IShellLinkW * iface, LPITEMIDLIST
     TRACE("(%p)->(ppidl=%p)\n",This, ppidl);
 
     if (!This->pPidl)
+    {
+	*ppidl = NULL;
         return S_FALSE;
+    }
     *ppidl = ILClone(This->pPidl);
     return S_OK;
 }




More information about the wine-cvs mailing list