Skip to content

Commit

Permalink
- Fixed Show Active Window Properties command could fail
Browse files Browse the repository at this point in the history
  • Loading branch information
wmjordan committed May 14, 2023
1 parent 0143059 commit d6bdc6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Codist/Commands/WindowInformerCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ static Run CreateRun(object value) {
if (type.Name == "__ComObject" && type.Namespace == "System") {
return new Run(ReflectionHelper.GetTypeNameFromComObject(value) ?? "System.__ComObject") { Foreground = f.Class };
}
var toString = type.GetMethod("ToString", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public);
var toString = type.GetMethod("ToString", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public, null, Type.EmptyTypes, null);
if (toString?.DeclaringType != typeof(object)) {
goto default;
}
Expand Down

0 comments on commit d6bdc6d

Please sign in to comment.