iphlpapi: Use the ANSI codepage for the convert interface name functions.
The name in these functions is now not the Unix interface name. Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
502fd1a4ba
commit
7992178df5
|
@ -4265,7 +4265,7 @@ DWORD WINAPI ConvertInterfaceLuidToNameA(const NET_LUID *luid, char *name, SIZE_
|
||||||
err = ConvertInterfaceLuidToNameW( luid, nameW, ARRAY_SIZE(nameW) );
|
err = ConvertInterfaceLuidToNameW( luid, nameW, ARRAY_SIZE(nameW) );
|
||||||
if (err) return err;
|
if (err) return err;
|
||||||
|
|
||||||
if (!WideCharToMultiByte( CP_UNIXCP, 0, nameW, -1, name, len, NULL, NULL ))
|
if (!WideCharToMultiByte( CP_ACP, 0, nameW, -1, name, len, NULL, NULL ))
|
||||||
err = GetLastError();
|
err = GetLastError();
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
@ -4340,7 +4340,7 @@ DWORD WINAPI ConvertInterfaceNameToLuidA(const char *name, NET_LUID *luid)
|
||||||
TRACE( "(%s %p)\n", debugstr_a(name), luid );
|
TRACE( "(%s %p)\n", debugstr_a(name), luid );
|
||||||
|
|
||||||
if (!name) return ERROR_INVALID_NAME;
|
if (!name) return ERROR_INVALID_NAME;
|
||||||
if (!MultiByteToWideChar( CP_UNIXCP, 0, name, -1, nameW, ARRAY_SIZE(nameW) ))
|
if (!MultiByteToWideChar( CP_ACP, 0, name, -1, nameW, ARRAY_SIZE(nameW) ))
|
||||||
return GetLastError();
|
return GetLastError();
|
||||||
|
|
||||||
return ConvertInterfaceNameToLuidW( nameW, luid );
|
return ConvertInterfaceNameToLuidW( nameW, luid );
|
||||||
|
|
Loading…
Reference in New Issue