src/events/SDL_events.c
changeset 8791 44dc9af6b7c2
parent 8583 fb2933ca805f
child 8860 c4133d635375
     1.1 --- a/src/events/SDL_events.c	Thu May 29 23:05:18 2014 +0200
     1.2 +++ b/src/events/SDL_events.c	Sat May 31 11:33:25 2014 -0700
     1.3 @@ -550,7 +550,7 @@
     1.4  void
     1.5  SDL_FilterEvents(SDL_EventFilter filter, void *userdata)
     1.6  {
     1.7 -    if (SDL_LockMutex(SDL_EventQ.lock) == 0) {
     1.8 +    if (SDL_EventQ.lock && SDL_LockMutex(SDL_EventQ.lock) == 0) {
     1.9          SDL_EventEntry *entry, *next;
    1.10          for (entry = SDL_EventQ.head; entry; entry = next) {
    1.11              next = entry->next;