Reports correctly when opening files for read without a search path defined.

This commit is contained in:
Ryan C. Gordon 2002-06-29 22:24:52 +00:00
parent 9acdd83369
commit 1db7c3b70f
1 changed files with 1 additions and 0 deletions

View File

@ -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;