Fixed mutex misuse.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 20 Mar 2012 15:28:19 -0400
changeset 1239 a96d88b357bc
parent 1238 97d4522cdf02
child 1240 22d4d1bd4e21
Fixed mutex misuse.
src/physfs.c
--- a/src/physfs.c	Tue Mar 20 15:24:50 2012 -0400
+++ b/src/physfs.c	Tue Mar 20 15:28:19 2012 -0400
@@ -860,7 +860,7 @@
             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);