aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alThunk.c
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/alThunk.c')
-rw-r--r--OpenAL32/alThunk.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/OpenAL32/alThunk.c b/OpenAL32/alThunk.c
index 5784a358..7cd83c23 100644
--- a/OpenAL32/alThunk.c
+++ b/OpenAL32/alThunk.c
@@ -32,11 +32,7 @@ static RWLock ThunkLock;
void ThunkInit(void)
{
- ThunkLock.read_count = 0;
- ThunkLock.write_count = 0;
- ThunkLock.read_lock = AL_FALSE;
- ThunkLock.read_entry_lock = AL_FALSE;
- ThunkLock.write_lock = AL_FALSE;
+ RWLockInit(&ThunkLock);
ThunkArraySize = 1;
ThunkArray = calloc(1, ThunkArraySize * sizeof(*ThunkArray));
}