Marcus Meissner : shell32: Check return value of SHGetSpecialFolderPathW ( Coverity).
Module: wine Branch: master Commit: 4413e00ecab4271a270bfc91d5d9a0cc306d5ff8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4413e00ecab4271a270bfc91d5... Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Wed Oct 3 15:51:15 2012 +0200 shell32: Check return value of SHGetSpecialFolderPathW (Coverity). --- dlls/shell32/shfldr_desktop.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/shell32/shfldr_desktop.c b/dlls/shell32/shfldr_desktop.c index 6d52fd0..c22335a 100644 --- a/dlls/shell32/shfldr_desktop.c +++ b/dlls/shell32/shfldr_desktop.c @@ -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;
participants (1)
-
Alexandre Julliard