explorer: Check return of IShellFolder_GetDisplayNameOf (Coverity).

This commit is contained in:
André Hentschel 2014-01-19 20:55:39 +01:00 committed by Alexandre Julliard
parent 8695369dc5
commit 9ab0eab9e9
1 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ static struct menu_item* add_shell_item(struct menu_item* parent, LPITEMIDLIST p
{ {
STRRET strret; STRRET strret;
IShellFolder_GetDisplayNameOf(parent->folder, pidl, SHGDN_INFOLDER, &strret); if (SUCCEEDED(IShellFolder_GetDisplayNameOf(parent->folder, pidl, SHGDN_INFOLDER, &strret)))
StrRetToStrW(&strret, NULL, &item->displayname); StrRetToStrW(&strret, NULL, &item->displayname);
flags = SFGAO_FOLDER; flags = SFGAO_FOLDER;