Sound (Haiku): fix runtime error getting mute status

sizeof(bool) is only 1.
This commit is contained in:
François Revol authored and Carter Li committed 2025-02-15 22:38:05 +08:00
1 parent 519dae9462
commit c1c59cff6d
1 file changed
+1 -1
+1 -1
View File
@@ -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;