Commit 76b31a2e authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

mountmgr: Retrieve the unix-name from the alias.

If, at some point, we change that, we can add a Wine-only nsi table that holds the luid to unix-name mapping. Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 79c12f15
......@@ -1003,7 +1003,7 @@ static BOOL map_adapter_name( const NET_LUID *luid, char *unix_name, DWORD len )
{
WCHAR unix_nameW[IF_NAMESIZE];
if (ConvertInterfaceLuidToNameW( luid, unix_nameW, ARRAY_SIZE(unix_nameW) )) return FALSE;
if (ConvertInterfaceLuidToAlias( luid, unix_nameW, ARRAY_SIZE(unix_nameW) )) return FALSE;
return WideCharToMultiByte( CP_UNIXCP, 0, unix_nameW, -1, unix_name, len, NULL, NULL ) != 0;
}
......
......@@ -260,7 +260,7 @@ static UInt8 map_option( ULONG option )
#define IF_NAMESIZE 16
static BOOL map_adapter_name( const NET_LUID *luid, WCHAR *unix_name, DWORD len )
{
return !ConvertInterfaceLuidToNameW( luid, unix_name, len );
return !ConvertInterfaceLuidToAlias( luid, unix_name, len );
}
static CFStringRef find_service_id( const NET_LUID *adapter )
......
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