[IPHLPAPI] Fix for hasArp which crashes some iphlpapi tests. (#3216)
authorDoug Lyons <douglyons@douglyons.com>
Tue, 22 Sep 2020 13:50:41 +0000 (08:50 -0500)
committerGitHub <noreply@github.com>
Tue, 22 Sep 2020 13:50:41 +0000 (15:50 +0200)
CORE-16513

dll/win32/iphlpapi/ifenum_reactos.c

index 77fe4cf..cff14cd 100644 (file)
@@ -149,7 +149,8 @@ BOOL hasArp( HANDLE tcpFile, TDIEntityID *arp_maybe ) {
                               NULL );
     if( !NT_SUCCESS(status) ) return FALSE;
 
-    return (type & AT_ARP);
+    /* AT_ARP corresponds to an individual TDI entity type */
+    return (type == AT_ARP);
 }
 
 static NTSTATUS getInterfaceInfoSet( HANDLE tcpFile,