src/thread/windows/SDL_sysmutex.c
changeset 7037 3fedf1f25b94
parent 6977 b73d51026c68
child 8093 b43765095a6f
--- a/src/thread/windows/SDL_sysmutex.c	Fri Mar 29 21:29:57 2013 -0400
+++ b/src/thread/windows/SDL_sysmutex.c	Sun Mar 31 12:48:50 2013 -0400
@@ -67,8 +67,7 @@
 SDL_LockMutex(SDL_mutex * mutex)
 {
     if (mutex == NULL) {
-        SDL_SetError("Passed a NULL mutex");
-        return -1;
+        return SDL_SetError("Passed a NULL mutex");
     }
 
     EnterCriticalSection(&mutex->cs);
@@ -81,8 +80,7 @@
 {
     int retval = 0;
     if (mutex == NULL) {
-        SDL_SetError("Passed a NULL mutex");
-        return -1;
+        return SDL_SetError("Passed a NULL mutex");
     }
 
     if (TryEnterCriticalSection(&mutex->cs) == 0) {
@@ -96,8 +94,7 @@
 SDL_UnlockMutex(SDL_mutex * mutex)
 {
     if (mutex == NULL) {
-        SDL_SetError("Passed a NULL mutex");
-        return -1;
+        return SDL_SetError("Passed a NULL mutex");
     }
 
     LeaveCriticalSection(&mutex->cs);