Fixed mutex misuse.

This commit is contained in:
Ryan C. Gordon 2012-03-20 15:28:19 -04:00
parent f5923f5cea
commit 8d7cf56651
1 changed files with 1 additions and 1 deletions

View File

@ -860,7 +860,7 @@ static DirHandle *openDirectory(PHYSFS_Io *io, const char *d, int forWriting)
return retval;
io = __PHYSFS_createNativeIo(d, forWriting ? 'w' : 'r');
BAIL_IF_MACRO_MUTEX(io == NULL, NULL, stateLock, 0);
BAIL_IF_MACRO(!io, ERRPASS, 0);
} /* if */
ext = find_filename_extension(d);