Fix another implicit false-to-nullptr conversion

This commit is contained in:
magiblot 2020-02-09 15:51:30 +01:00 committed by GitHub
parent aa21fe17b8
commit 55e8601192
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,7 @@ std::string UTF16ToCP(u32 code_page, std::wstring_view input)
{
// "If cchWideChar [input buffer size] is set to 0, the function fails." -MSDN
auto const size = WideCharToMultiByte(
code_page, 0, input.data(), static_cast<int>(input.size()), nullptr, 0, nullptr, false);
code_page, 0, input.data(), static_cast<int>(input.size()), nullptr, 0, nullptr, nullptr);
output.resize(size);