Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
move variable declaration to beginning of function
Browse files Browse the repository at this point in the history
  • Loading branch information
urkle committed Mar 6, 2013
1 parent 8da2cef commit 33be7a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/thread/windows/SDL_sysmutex.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 33be7a1

Please sign in to comment.