common, input_common, network: fix warnings

This commit is contained in:
SachinVin 2023-06-09 22:50:37 +05:30
parent 946a32d793
commit 7e134421d5
3 changed files with 8 additions and 8 deletions

View file

@ -170,7 +170,7 @@ static std::wstring CPToUTF16(u32 code_page, const std::string& input) {
MultiByteToWideChar(code_page, 0, input.data(), static_cast<int>(input.size()), nullptr, 0);
if (size == 0) {
return L"";
return {};
}
std::wstring output(size, L'\0');