From 2033f60d247ec0d3fe0595429581fe0dcfe7bbf4 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 15 Mar 2010 14:28:38 -0700 Subject: Print an error when realloc fails --- OpenAL32/alThunk.c | 1 + 1 file changed, 1 insertion(+) 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)); -- cgit v1.2.3