mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-06 13:14:21 +01:00
Sound (Haiku): fix runtime error getting mute status
sizeof(bool) is only 1.
This commit is contained in:
committed by
Carter Li
parent
519dae9462
commit
c1c59cff6d
@@ -72,7 +72,7 @@ const char* ffDetectSound(FFlist* devices /* List of FFSoundDevice */)
|
||||
|
||||
if (mute)
|
||||
{
|
||||
bool isMute = false;
|
||||
int32 isMute = false;
|
||||
size = sizeof(isMute);
|
||||
if (mute->GetValue(&isMute, &size, &when) == B_OK && isMute)
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user