Skip to content

Commit

Permalink
Reports correctly when opening files for read without a search path d…
Browse files Browse the repository at this point in the history
…efined.
  • Loading branch information
icculus committed Jun 29, 2002
1 parent 9acdd83 commit 1db7c3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions physfs.c
Expand Up @@ -1321,6 +1321,7 @@ PHYSFS_file *PHYSFS_openRead(const char *fname)
fname++;

__PHYSFS_platformGrabMutex(stateLock);
BAIL_IF_MACRO_MUTEX(!searchPath, ERR_NOT_IN_SEARCH_PATH, stateLock, NULL);
for (i = searchPath; i != NULL; i = i->next)
{
DirHandle *h = i->dirHandle;
Expand Down

0 comments on commit 1db7c3b

Please sign in to comment.