From d2dbaad8e60643cbafd78a32f690862dbf4b56e1 Mon Sep 17 00:00:00 2001 From: dahall Date: Thu, 17 Dec 2020 14:05:46 -0700 Subject: [PATCH] Fixed warning in INetFwRule.GetInterfaces extension method. --- PInvoke/FirewallApi/NetFW.vb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PInvoke/FirewallApi/NetFW.vb b/PInvoke/FirewallApi/NetFW.vb index 94d5f0e6..29704e00 100644 --- a/PInvoke/FirewallApi/NetFW.vb +++ b/PInvoke/FirewallApi/NetFW.vb @@ -2459,8 +2459,8 @@ Partial Public Module FirewallApi ''' The rule. ''' A string array with zero or more elements. - Public Function GetInterfaces(ByVal rule As INetFwRule) As String() - Return If(rule.Interfaces Is Nothing, New String(-1) {}, Array.ConvertAll(Of Object, String)(rule.Interfaces, Function(o) o.ToString())) + Public Function GetInterfaces(rule As INetFwRule) As String() + Return If(rule.Interfaces Is Nothing, New String(-1) {}, Array.ConvertAll(CType(rule.Interfaces, Object()), Function(o) o.ToString())) End Function ''' The INetFwRules interface provides a collection of firewall rules.