1
0
mirror of synced 2025-04-19 00:24:02 +03:00
This commit is contained in:
yhirose 2024-11-14 16:46:27 -05:00
parent 26208363ee
commit 7bd316f3d0

View File

@ -2259,7 +2259,7 @@ make_basic_authentication_header(const std::string &username,
namespace detail { namespace detail {
#if defined(_WIN32) #if defined(_WIN32)
std::wstring u8string_to_wstring(const char *s) { inline std::wstring u8string_to_wstring(const char *s) {
std::wstring ws; std::wstring ws;
auto len = static_cast<int>(strlen(s)); auto len = static_cast<int>(strlen(s));
auto wlen = ::MultiByteToWideChar(CP_UTF8, 0, s, len, nullptr, 0); auto wlen = ::MultiByteToWideChar(CP_UTF8, 0, s, len, nullptr, 0);