mirror of
https://github.com/reactos/reactos.git
synced 2025-04-04 20:50:41 +00:00
[IPHLPAPI] GetInterfaceInfo(): Add "\DEVICE\TCPIP_"-Prefix to interface names
This commit is contained in:
parent
6ce259e694
commit
1b35626d54
1 changed files with 3 additions and 2 deletions
|
@ -1763,9 +1763,10 @@ DWORD WINAPI GetInterfaceInfo(PIP_INTERFACE_INFO pIfTable, PULONG dwOutBufLen)
|
|||
|
||||
pIfTable->Adapter[ndx].Index = table->indexes[ndx];
|
||||
name = getInterfaceNameByIndex(table->indexes[ndx]);
|
||||
for (walker = name, assigner = pIfTable->Adapter[ndx].Name;
|
||||
wcscpy(pIfTable->Adapter[ndx].Name, L"\\DEVICE\\TCPIP_");
|
||||
for (walker = name, assigner = &pIfTable->Adapter[ndx].Name[14];
|
||||
walker && *walker &&
|
||||
assigner - pIfTable->Adapter[ndx].Name < MAX_ADAPTER_NAME - 1;
|
||||
assigner - pIfTable->Adapter[ndx].Name < MAX_ADAPTER_NAME - 1 - 14;
|
||||
walker++, assigner++)
|
||||
*assigner = *walker;
|
||||
*assigner = 0;
|
||||
|
|
Loading…
Reference in a new issue