Skip to content

Commit

Permalink
Merge pull request #8620 from magiblot/patch-1
Browse files Browse the repository at this point in the history
Fix another implicit false-to-nullptr conversion
  • Loading branch information
Tilka authored Feb 9, 2020
2 parents aa21fe1 + 55e8601 commit e00459f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Common/StringUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e00459f

Please sign in to comment.