From 433197172d3d18aa435aaa7e90b9f349dfc0293f Mon Sep 17 00:00:00 2001 From: Michael Jung Date: Fri, 8 Jul 2005 14:18:32 +0000 Subject: [PATCH] Fail in SHGetDataFromIDList when called on special folder. --- dlls/shell32/pidl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/shell32/pidl.c b/dlls/shell32/pidl.c index 544158db85a..ccb6471e8ff 100644 --- a/dlls/shell32/pidl.c +++ b/dlls/shell32/pidl.c @@ -1113,7 +1113,7 @@ HRESULT WINAPI SHGetDataFromIDListA(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, case SHGDFIL_FINDDATA: pfd = dest; - if (_ILIsDrive(pidl)) + if (_ILIsDrive(pidl) || _ILIsSpecialFolder(pidl)) return E_INVALIDARG; if (len < sizeof(WIN32_FIND_DATAA))