diff options
author | Chris Robinson <[email protected]> | 2010-03-15 14:28:38 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-03-15 14:28:38 -0700 |
commit | 2033f60d247ec0d3fe0595429581fe0dcfe7bbf4 (patch) | |
tree | 8d2eccec37f78e3deb459d3ee54c7168bb59891f | |
parent | d4159430f010625b44c48a1270d5e09348957e9b (diff) |
Print an error when realloc fails
-rw-r--r-- | OpenAL32/alThunk.c | 1 |
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)); |