Huw Davies : iphlpapi: Use the ANSI codepage for the convert interface name functions.
Alexandre Julliard
julliard at winehq.org
Thu Aug 19 16:00:05 CDT 2021
Module: wine
Branch: master
Commit: 7992178df58830aa998da58a41df7fcf001fd3fb
URL: https://source.winehq.org/git/wine.git/?a=commit;h=7992178df58830aa998da58a41df7fcf001fd3fb
Author: Huw Davies <huw at codeweavers.com>
Date: Thu Aug 19 08:53:44 2021 +0100
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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/iphlpapi/iphlpapi_main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/iphlpapi/iphlpapi_main.c b/dlls/iphlpapi/iphlpapi_main.c
index ff6b858d48b..408ac14bd1b 100644
--- a/dlls/iphlpapi/iphlpapi_main.c
+++ b/dlls/iphlpapi/iphlpapi_main.c
@@ -4265,7 +4265,7 @@ DWORD WINAPI ConvertInterfaceLuidToNameA(const NET_LUID *luid, char *name, SIZE_
err = ConvertInterfaceLuidToNameW( luid, nameW, ARRAY_SIZE(nameW) );
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();
return err;
}
@@ -4340,7 +4340,7 @@ DWORD WINAPI ConvertInterfaceNameToLuidA(const char *name, NET_LUID *luid)
TRACE( "(%s %p)\n", debugstr_a(name), luid );
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 ConvertInterfaceNameToLuidW( nameW, luid );
More information about the wine-cvs
mailing list