physfs.c
changeset 688 067a55bf46ba
parent 687 f76dffa43fa2
child 691 71d9affe0d8a
equal deleted inserted replaced
687:f76dffa43fa2 688:067a55bf46ba
  1734     BAIL_IF_MACRO(fname == NULL, ERR_INVALID_ARGUMENT, 0);
  1734     BAIL_IF_MACRO(fname == NULL, ERR_INVALID_ARGUMENT, 0);
  1735     BAIL_IF_MACRO(!sanitizePlatformIndependentPath(_fname, fname), NULL, 0);
  1735     BAIL_IF_MACRO(!sanitizePlatformIndependentPath(_fname, fname), NULL, 0);
  1736 
  1736 
  1737     __PHYSFS_platformGrabMutex(stateLock);
  1737     __PHYSFS_platformGrabMutex(stateLock);
  1738 
  1738 
  1739     /* !!! FIXME: should probably be ERR_PATH_NOT_FOUND */
  1739     BAIL_IF_MACRO_MUTEX(!searchPath, ERR_PATH_NOT_FOUND, stateLock, NULL);
  1740     BAIL_IF_MACRO_MUTEX(!searchPath, ERR_NOT_IN_SEARCH_PATH, stateLock, NULL);
       
  1741 
  1740 
  1742     /* !!! FIXME: Why aren't we using a for loop here? */
  1741     /* !!! FIXME: Why aren't we using a for loop here? */
  1743     i = searchPath;
  1742     i = searchPath;
  1744 
  1743 
  1745     do
  1744     do