Skip to content
Permalink
Browse files
Reports correctly when opening files for read without a search path d…
…efined.
  • Loading branch information
icculus committed Jun 29, 2002
1 parent 9acdd83 commit 1db7c3b70fa30831eccf4117db94a50b0e980fcb
Showing with 1 addition and 0 deletions.
  1. +1 −0 physfs.c
@@ -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;

0 comments on commit 1db7c3b

Please sign in to comment.