diff --git a/SDL/src/thread/wii/SDL_systhread.c b/SDL/src/thread/wii/SDL_systhread.c index 42bdc5e..e720e91 100644 --- a/SDL/src/thread/wii/SDL_systhread.c +++ b/SDL/src/thread/wii/SDL_systhread.c @@ -48,7 +48,12 @@ void *run_thread(void *data) int SDL_SYS_CreateThread(SDL_Thread *thread, void *args) { - LWP_CreateThread(&thread->handle, run_thread, args, 0, 0, 80); + + if ( LWP_CreateThread(&thread->handle, run_thread, args, 0, 0, 64) != 0 ) { + SDL_SetError("Not enough resources to create thread"); + return(-1); + } + return (0); }