aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/midi/fluidsynth.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/midi/fluidsynth.c')
-rw-r--r--Alc/midi/fluidsynth.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Alc/midi/fluidsynth.c b/Alc/midi/fluidsynth.c
index d08d4fb5..fbcd4353 100644
--- a/Alc/midi/fluidsynth.c
+++ b/Alc/midi/fluidsynth.c
@@ -716,8 +716,10 @@ static ALenum FSynth_selectSoundfonts(FSynth *self, ALCcontext *context, ALsizei
else
{
ERR("Failed to allocate space for %d font IDs!\n", count);
- fontid = ExchangePtr((XchgPtr*)&self->FontIDs, NULL);
- count = ExchangeInt(&self->NumFontIDs, 0);
+ fontid = self->FontIDs;
+ count = self->NumFontIDs;
+ self->FontIDs = NULL;
+ self->NumFontIDs = 0;
}
for(i = 0;i < count;i++)