mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 20:05:54 +00:00
dde_bsd: use right member for iterating mixer set
Due to what seems like a copy-and-paste error, the wrong union member was used to compare the label. Fortunately, as both structs have the same memory layout that did not result in any issue. Issue #3929.
This commit is contained in:
parent
b9869b666a
commit
1b4444ce9e
@ -178,7 +178,7 @@ static bool set_mixer_value(Mixer &mixer, char const * const field,
|
||||
case AUDIO_MIXER_SET:
|
||||
{
|
||||
for (int i = 0; i < info.un.s.num_mem; i++) {
|
||||
if (Genode::strcmp(value, info.un.e.member[i].label.name) == 0) {
|
||||
if (Genode::strcmp(value, info.un.s.member[i].label.name) == 0) {
|
||||
oldv= ctrl.un.mask;
|
||||
newv |= info.un.s.member[i].mask;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user