[PowerRename]Don't crash dllhost on right-click (#19723)

* Add version to PowerRename context menu

* [PowerRename]Don't crash dllhost on right-click
This commit is contained in:
Jaime Bernardo
2022-08-02 19:28:10 +01:00
committed by GitHub
parent 6caf472798
commit 792331e5a6
3 changed files with 47 additions and 62 deletions

View File

@@ -93,6 +93,12 @@ public:
{
*cmdState = ECS_ENABLED;
// We've observed that it's possible that a null gets passed instead of an empty array. Just don't show the context menu in this case.
if (nullptr == selection) {
*cmdState = ECS_HIDDEN;
return S_OK;
}
if (!CSettingsInstance().GetEnabled())
{
*cmdState = ECS_HIDDEN;