explorer: Check return of IShellFolder_GetDisplayNameOf (Coverity).
This commit is contained in:
parent
8695369dc5
commit
9ab0eab9e9
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue