Fail in SHGetDataFromIDList when called on special folder.

This commit is contained in:
Michael Jung 2005-07-08 14:18:32 +00:00 committed by Alexandre Julliard
parent 8b87bdd76b
commit 433197172d
1 changed files with 1 additions and 1 deletions

View File

@ -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))