Fix implicit false-to-nullptr conversions

This commit is contained in:
QuellaZhang 2019-08-15 17:49:57 +02:00 committed by Silent
commit e67eb4693e
No known key found for this signature in database
GPG key ID: AE53149BB0C45AF1
2 changed files with 2 additions and 2 deletions

View file

@ -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);