Huw Davies : iphlpapi: For unknown interface types set the physical address length to zero.
Alexandre Julliard
julliard at winehq.org
Wed Jun 30 16:11:00 CDT 2021
Module: wine
Branch: master
Commit: ed79dd2125d306405b9486a5ae64092567c70634
URL: https://source.winehq.org/git/wine.git/?a=commit;h=ed79dd2125d306405b9486a5ae64092567c70634
Author: Huw Davies <huw at codeweavers.com>
Date: Wed Jun 30 09:59:23 2021 +0100
iphlpapi: For unknown interface types set the physical address length to zero.
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/iphlpapi/ifenum.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/iphlpapi/ifenum.c b/dlls/iphlpapi/ifenum.c
index 2e99ebe03fd..3b4ac775db7 100644
--- a/dlls/iphlpapi/ifenum.c
+++ b/dlls/iphlpapi/ifenum.c
@@ -498,7 +498,7 @@ static DWORD getInterfacePhysicalByName(const char *name, PDWORD len, PBYTE addr
break;
#endif
default:
- addrLen = min(MAX_INTERFACE_PHYSADDR, sizeof(ifr.ifr_hwaddr.sa_data));
+ addrLen = 0;
*type = MIB_IF_TYPE_OTHER;
}
if (addrLen > *len) {
More information about the wine-cvs
mailing list