mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-15 19:12:19 +00:00
nsiproxy.sys: Strip trailing end of line for iface name on Linux.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
This commit is contained in:
parent
d36e785784
commit
6b151e6937
|
@ -1014,7 +1014,7 @@ static NTSTATUS ipv4_neighbour_enumerate_all( void *key_data, UINT key_size, voi
|
|||
|
||||
#ifdef __linux__
|
||||
{
|
||||
char buf[512], *ptr;
|
||||
char buf[512], *ptr, *s;
|
||||
UINT atf_flags;
|
||||
FILE *fp;
|
||||
|
||||
|
@ -1053,6 +1053,9 @@ static NTSTATUS ipv4_neighbour_enumerate_all( void *key_data, UINT key_size, voi
|
|||
while (*ptr && !isspace( *ptr )) ptr++; /* mask (skip) */
|
||||
while (*ptr && isspace( *ptr )) ptr++;
|
||||
|
||||
s = ptr;
|
||||
while (*s && !isspace(*s)) s++;
|
||||
*s = 0;
|
||||
if (!convert_unix_name_to_luid( ptr, &entry.luid )) continue;
|
||||
if (!convert_luid_to_index( &entry.luid, &entry.if_index )) continue;
|
||||
|
||||
|
|
Loading…
Reference in a new issue