Reports correctly when opening files for read without a search path defined.
This commit is contained in:
parent
9acdd83369
commit
1db7c3b70f
1
physfs.c
1
physfs.c
|
@ -1321,6 +1321,7 @@ PHYSFS_file *PHYSFS_openRead(const char *fname)
|
||||||
fname++;
|
fname++;
|
||||||
|
|
||||||
__PHYSFS_platformGrabMutex(stateLock);
|
__PHYSFS_platformGrabMutex(stateLock);
|
||||||
|
BAIL_IF_MACRO_MUTEX(!searchPath, ERR_NOT_IN_SEARCH_PATH, stateLock, NULL);
|
||||||
for (i = searchPath; i != NULL; i = i->next)
|
for (i = searchPath; i != NULL; i = i->next)
|
||||||
{
|
{
|
||||||
DirHandle *h = i->dirHandle;
|
DirHandle *h = i->dirHandle;
|
||||||
|
|
Loading…
Reference in New Issue