mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 20:57:22 +02:00
[PowerRename] Add PowerRename to directory background context menu (#24522)
* Add PowerRename to directory background context menu * Fix analyzer error * Add more checks
This commit is contained in:
@@ -551,7 +551,7 @@ bool DataObjectContainsRenamableItem(_In_ IUnknown* dataSource)
|
||||
{
|
||||
bool hasRenamable = false;
|
||||
CComPtr<IShellItemArray> spsia;
|
||||
if (SUCCEEDED(GetShellItemArrayFromDataObject(dataSource, &spsia)))
|
||||
if (dataSource && SUCCEEDED(GetShellItemArrayFromDataObject(dataSource, &spsia)))
|
||||
{
|
||||
CComPtr<IEnumShellItems> spesi;
|
||||
if (SUCCEEDED(spsia->EnumItems(&spesi)))
|
||||
|
||||
Reference in New Issue
Block a user