aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alThunk.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-03-15 14:28:38 -0700
committerChris Robinson <[email protected]>2010-03-15 14:28:38 -0700
commit2033f60d247ec0d3fe0595429581fe0dcfe7bbf4 (patch)
tree8d2eccec37f78e3deb459d3ee54c7168bb59891f /OpenAL32/alThunk.c
parentd4159430f010625b44c48a1270d5e09348957e9b (diff)
Print an error when realloc fails
Diffstat (limited to 'OpenAL32/alThunk.c')
-rw-r--r--OpenAL32/alThunk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenAL32/alThunk.c b/OpenAL32/alThunk.c
index 54cebc4c..08b80b06 100644
--- a/OpenAL32/alThunk.c
+++ b/OpenAL32/alThunk.c
@@ -70,6 +70,7 @@ ALuint alThunkAddEntry(ALvoid *ptr)
if(!NewList)
{
LeaveCriticalSection(&g_ThunkLock);
+ AL_PRINT("Realloc failed to increase to %u enties!\n", g_ThunkArraySize*2);
return 0;
}
memset(&NewList[g_ThunkArraySize], 0, g_ThunkArraySize*sizeof(ThunkEntry));