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,8 +151,8 @@ static struct menu_item* add_shell_item(struct menu_item* parent, LPITEMIDLIST p
{
STRRET strret;
IShellFolder_GetDisplayNameOf(parent->folder, pidl, SHGDN_INFOLDER, &strret);
StrRetToStrW(&strret, NULL, &item->displayname);
if (SUCCEEDED(IShellFolder_GetDisplayNameOf(parent->folder, pidl, SHGDN_INFOLDER, &strret)))
StrRetToStrW(&strret, NULL, &item->displayname);
flags = SFGAO_FOLDER;
IShellFolder_GetAttributesOf(parent->folder, 1, (LPCITEMIDLIST*)&pidl, &flags);