Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

move variable declaration to beginning of function

  • Loading branch information
urkle committed Mar 6, 2013
1 parent 8da2cef commit 33be7a1afca85e8c8fb5017d3f6da1034735e5bc
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/thread/windows/SDL_sysmutex.c
@@ -79,12 +79,12 @@ SDL_mutexP(SDL_mutex * mutex)
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;
}

0 comments on commit 33be7a1

Please sign in to comment.