Ver código fonte

Fixed mutex misuse.

Ryan C. Gordon 14 anos atrás
pai
commit
8d7cf56651
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/physfs.c

+ 1 - 1
src/physfs.c

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