Merge pull request #12446 from toshixm/fix_12440

fix garbled characters when converting encodings
This commit is contained in:
Autechre 2021-06-03 00:17:53 +02:00 committed by GitHub
commit b81ec7d631
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,7 +171,7 @@ bool net_ifinfo_new(net_ifinfo_t *list)
char name[PATH_MAX_LENGTH];
memset(name, 0, sizeof(name));
WideCharToMultiByte(CP_ACP, 0, aa->FriendlyName, wcslen(aa->FriendlyName),
WideCharToMultiByte(CP_UTF8, 0, aa->FriendlyName, wcslen(aa->FriendlyName),
name, PATH_MAX_LENGTH, NULL, NULL);
for (ua = aa->FirstUnicastAddress; ua != NULL; ua = ua->Next)