Fix implicit false-to-nullptr conversions

This commit is contained in:
QuellaZhang
2019-08-15 17:49:57 +02:00
committed by Silent
parent a35f540e7a
commit e67eb4693e
2 changed files with 2 additions and 2 deletions

View File

@ -483,7 +483,7 @@ std::string UTF16ToCP(u32 code_page, std::wstring_view input)
output.resize(size);
if (size != WideCharToMultiByte(code_page, 0, input.data(), static_cast<int>(input.size()),
&output[0], static_cast<int>(output.size()), nullptr, false))
&output[0], static_cast<int>(output.size()), nullptr, nullptr))
{
const DWORD error_code = GetLastError();
ERROR_LOG(COMMON, "WideCharToMultiByte Error in String '%s': %lu",