mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 15:01:40 +00:00
fix missing check of result1
This commit is contained in:
parent
b2cc3a6341
commit
ccad46936d
1 changed files with 1 additions and 1 deletions
|
@ -3409,7 +3409,7 @@ int fluid_handle_chanmap(void *data, int ac, char **av,
|
|||
int chan = ac ? atoi(av[i]) : i;
|
||||
result1 = fluid_synth_mixer_get_channel_mapping(synth, chan, &out_from_chan,
|
||||
&fx_from_chan);
|
||||
if(fx_from_chan >= 0)
|
||||
if((result1 == FLUID_OK) && (fx_from_chan >= 0))
|
||||
{
|
||||
result2 = fluid_synth_mixer_get_fx_mapping(synth, fx_from_chan,
|
||||
&out_from_fx);
|
||||
|
|
Loading…
Reference in a new issue