mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user