Fix SDL_TryLockMutex compile error when FAKE_RECURSIVE_MUTEX is defined

This commit is contained in:
Andreas Schiffler 2013-03-09 09:24:43 -08:00
parent 449a8da224
commit 1673a640c3

View File

@ -134,7 +134,7 @@ SDL_TryLockMutex(SDL_mutex * mutex)
retval = 0;
#if FAKE_RECURSIVE_MUTEX
this_thread = pthread_self();
if (mutex->owner == this_thead) {
if (mutex->owner == this_thread) {
++mutex->recursive;
} else {
/* The order of operations is important.