shell32: Check return value of SHGetSpecialFolderPathW (Coverity).

This commit is contained in:
Marcus Meissner 2012-10-03 15:51:15 +02:00 committed by Alexandre Julliard
parent 0f4c2f9a8c
commit 4413e00eca

View File

@ -332,7 +332,7 @@ static BOOL CreateDesktopEnumList(IEnumIDListImpl *list, DWORD dwFlags)
}
/* enumerate the elements in %windir%\desktop */
SHGetSpecialFolderPathW(0, szPath, CSIDL_DESKTOPDIRECTORY, FALSE);
ret = ret && SHGetSpecialFolderPathW(0, szPath, CSIDL_DESKTOPDIRECTORY, FALSE);
ret = ret && CreateFolderEnumList(list, szPath, dwFlags);
return ret;