Skip to content
Permalink
Browse files

Fix implicit false-to-nullptr conversions

  • Loading branch information...
QuellaZhang authored and CookiePLMonster committed Aug 15, 2019
1 parent a35f540 commit e67eb4693e7d8354a42db016e84b56af9308a476
Showing with 2 additions and 2 deletions.
  1. +1 −1 Source/Core/AudioCommon/WASAPIStream.cpp
  2. +1 −1 Source/Core/Common/StringUtil.cpp
@@ -152,7 +152,7 @@ IMMDevice* WASAPIStream::GetDeviceByName(std::string name)
__uuidof(IMMDeviceEnumerator), reinterpret_cast<LPVOID*>(&enumerator));

if (!HandleWinAPI("Failed to create MMDeviceEnumerator", result))
return false;
return nullptr;

IMMDeviceCollection* devices;
result = enumerator->EnumAudioEndpoints(eRender, DEVICE_STATE_ACTIVE, &devices);
@@ -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",

0 comments on commit e67eb46

Please sign in to comment.
You can’t perform that action at this time.