Marcus Meissner : shell32: Check return value of SHGetSpecialFolderPathW ( Coverity).
Alexandre Julliard
julliard at winehq.org
Wed Oct 3 13:20:36 CDT 2012
Module: wine
Branch: master
Commit: 4413e00ecab4271a270bfc91d5d9a0cc306d5ff8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4413e00ecab4271a270bfc91d5d9a0cc306d5ff8
Author: Marcus Meissner <marcus at 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;
More information about the wine-cvs
mailing list