commit | b168f12a480682d25e96282dc485566ee4d44477 | [log] [tgz] |
---|---|---|
author | Alexandre Julliard <julliard@winehq.org> | Wed May 21 18:26:00 2003 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Wed May 21 18:26:00 2003 +0000 |
tree | 1d923df70f48e566f1f584691400665aff2e58ce | |
parent | bb993e01273c1eaa22dc483e2e42fcc9505fa776 [diff] [blame] |
Fixed wrong length argument in getInterfacePhysicalByName.
diff --git a/dlls/iphlpapi/ifenum.c b/dlls/iphlpapi/ifenum.c index f512855..d7d8ab8 100644 --- a/dlls/iphlpapi/ifenum.c +++ b/dlls/iphlpapi/ifenum.c
@@ -682,7 +682,7 @@ if (!name || !len || !addr || !type) return ERROR_INVALID_PARAMETER; - if (sysctl(mib, 6, NULL, &len, NULL, 0) < 0) + if (sysctl(mib, 6, NULL, &mibLen, NULL, 0) < 0) return ERROR_NO_MORE_FILES; buf = (u_char *)malloc(mibLen);