https://git.reactos.org/?p=reactos.git;a=commitdiff;h=90be2f4e1b139daef408b…
commit 90be2f4e1b139daef408ba1472532ae8bbbc4f2b
Author: Doug Lyons <douglyons(a)douglyons.com>
AuthorDate: Tue Sep 22 08:50:41 2020 -0500
Commit: GitHub <noreply(a)github.com>
CommitDate: Tue Sep 22 15:50:41 2020 +0200
[IPHLPAPI] Fix for hasArp which crashes some iphlpapi tests. (#3216)
CORE-16513
---
dll/win32/iphlpapi/ifenum_reactos.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dll/win32/iphlpapi/ifenum_reactos.c b/dll/win32/iphlpapi/ifenum_reactos.c
index 77fe4cf73d3..cff14cdfe5c 100644
--- a/dll/win32/iphlpapi/ifenum_reactos.c
+++ b/dll/win32/iphlpapi/ifenum_reactos.c
@@ -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,