src/thread/windows/SDL_sysmutex.c
changeset 6969 74cf567e8618
parent 6966 090df160f6e0
child 6977 b73d51026c68
--- 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;
     }