author | Edward Rudd <urkle@outoforder.cc> |
Wed, 06 Mar 2013 10:37:27 -0500 | |
changeset 6969 | 74cf567e8618 |
parent 6968 | 959d9bbbbea0 |
child 6970 | e0db39f7afb0 |
--- a/src/thread/windows/SDL_sysmutex.c Tue Mar 05 18:52:25 2013 -0800 +++ b/src/thread/windows/SDL_sysmutex.c Wed Mar 06 10:37:27 2013 -0500 @@ -79,12 +79,12 @@ int SDL_TryLockMutex(SDL_mutex * mutex) { + int retval = 0; if (mutex == NULL) { SDL_SetError("Passed a NULL mutex"); return -1; } - int retval = 0; if (TryEnterCriticalSection(&mutex->cs) == 0) { retval = SDL_MUTEX_TIMEDOUT; }