mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
parent
da2f9e476e
commit
fe07660f40
1 changed files with 1 additions and 1 deletions
|
@ -2271,7 +2271,7 @@ inline std::wstring u8string_to_wstring(const char *s) {
|
||||||
wlen = ::MultiByteToWideChar(
|
wlen = ::MultiByteToWideChar(
|
||||||
CP_UTF8, 0, s, len,
|
CP_UTF8, 0, s, len,
|
||||||
const_cast<LPWSTR>(reinterpret_cast<LPCWSTR>(ws.data())), wlen);
|
const_cast<LPWSTR>(reinterpret_cast<LPCWSTR>(ws.data())), wlen);
|
||||||
if (wlen != ws.size()) { ws.clear(); }
|
if (wlen != static_cast<int>(ws.size())) { ws.clear(); }
|
||||||
}
|
}
|
||||||
return ws;
|
return ws;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue