aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alEffect.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-08-22 07:40:14 -0700
committerChris Robinson <[email protected]>2011-08-22 07:40:14 -0700
commit199df253caad196162b02d61fd7ed06606193890 (patch)
treea7ef47822a1593b600c440da9cc2f0e5586df8be /OpenAL32/alEffect.c
parentc1f435cc18df4e2597d166b8b1c8a0d4ba9b23a6 (diff)
Always use the thunk functions to get object IDs
Diffstat (limited to 'OpenAL32/alEffect.c')
-rw-r--r--OpenAL32/alEffect.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenAL32/alEffect.c b/OpenAL32/alEffect.c
index 84cb81e3..51ebba0b 100644
--- a/OpenAL32/alEffect.c
+++ b/OpenAL32/alEffect.c
@@ -63,12 +63,12 @@ AL_API ALvoid AL_APIENTRY alGenEffects(ALsizei n, ALuint *effects)
break;
}
- err = ALTHUNK_NEWENTRY(effect, &effect->effect);
+ err = NewThunkEntry(&effect->effect);
if(err == AL_NO_ERROR)
err = InsertUIntMapEntry(&device->EffectMap, effect->effect, effect);
if(err != AL_NO_ERROR)
{
- ALTHUNK_REMOVEENTRY(effect->effect);
+ FreeThunkEntry(effect->effect);
memset(effect, 0, sizeof(ALeffect));
free(effect);
@@ -128,7 +128,7 @@ AL_API ALvoid AL_APIENTRY alDeleteEffects(ALsizei n, ALuint *effects)
continue;
RemoveUIntMapKey(&device->EffectMap, ALEffect->effect);
- ALTHUNK_REMOVEENTRY(ALEffect->effect);
+ FreeThunkEntry(ALEffect->effect);
memset(ALEffect, 0, sizeof(ALeffect));
free(ALEffect);
@@ -1076,7 +1076,7 @@ ALvoid ReleaseALEffects(ALCdevice *device)
device->EffectMap.array[i].value = NULL;
// Release effect structure
- ALTHUNK_REMOVEENTRY(temp->effect);
+ FreeThunkEntry(temp->effect);
memset(temp, 0, sizeof(ALeffect));
free(temp);
}