The documented error return value for SDL_WaitEvent() is 0.
authorSam Lantinga <slouken@libsdl.org>
Mon, 15 Apr 2002 04:53:41 +0000
changeset 353 d47637068e52
parent 352 b49fc922e7f6
child 354 30935e76acb5
The documented error return value for SDL_WaitEvent() is 0.
src/events/SDL_events.c
--- a/src/events/SDL_events.c	Mon Apr 15 04:51:26 2002 +0000
+++ b/src/events/SDL_events.c	Mon Apr 15 04:53:41 2002 +0000
@@ -383,7 +383,7 @@
 	while ( 1 ) {
 		SDL_PumpEvents();
 		switch(SDL_PeepEvents(event, 1, SDL_GETEVENT, SDL_ALLEVENTS)) {
-		    case -1: return -1; 
+		    case -1: return 0;
 		    case 1: return 1;
 		    case 0: SDL_Delay(10);
 		}