[IPHLPAPI] Fix for hasArp which crashes some iphlpapi tests. (#3216)

CORE-16513
This commit is contained in:
Doug Lyons
2020-09-22 15:50:41 +02:00
committed by GitHub
parent e45bacda07
commit 90be2f4e1b
+2 -1
View 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,