Commit b168f12a authored by Alexandre Julliard's avatar Alexandre Julliard

Fixed wrong length argument in getInterfacePhysicalByName.

parent bb993e01
......@@ -682,7 +682,7 @@ DWORD getInterfacePhysicalByName(const char *name, PDWORD len, PBYTE addr,
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment