reactos/lib/shell32
diff -u -r1.16 -r1.17
--- pidl.c 16 Feb 2004 21:46:12 -0000 1.16
+++ pidl.c 27 Mar 2004 09:12:05 -0000 1.17
@@ -183,10 +183,14 @@
* observed: pidl=Desktop return=pidl
*/
LPITEMIDLIST WINAPI ILFindLastID(LPCITEMIDLIST pidl)
-{ LPCITEMIDLIST pidlLast = pidl;
+{
+ LPCITEMIDLIST pidlLast = pidl;
TRACE("(pidl=%p)\n",pidl);
+ if (!pidl)
+ return NULL;
+
while (pidl->mkid.cb)
{
pidlLast = pidl;
@@ -1151,7 +1155,7 @@
* SHGetFolderLocation [SHELL32.@]
*
* NOTES
- * the pidl can be a simple one. since we cant get the path out of the pidl
+ * the pidl can be a simple one. since we can't get the path out of the pidl
* we have to take all data from the pidl
*/
HRESULT WINAPI SHGetFolderLocation(
@@ -1170,7 +1174,7 @@
* SHGetDataFromIDListA [SHELL32.247]
*
* NOTES
- * the pidl can be a simple one. since we cant get the path out of the pidl
+ * the pidl can be a simple one. since we can't get the path out of the pidl
* we have to take all data from the pidl
*/
HRESULT WINAPI SHGetDataFromIDListA(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID dest, int len)