Reports correctly when opening files for read without a search path defined.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 29 Jun 2002 22:24:52 +0000
changeset 314 a156f6155e3c
parent 313 fccebd616595
child 315 b209dfe09e57
Reports correctly when opening files for read without a search path defined.
physfs.c
--- a/physfs.c	Sat Jun 29 22:23:30 2002 +0000
+++ b/physfs.c	Sat Jun 29 22:24:52 2002 +0000
@@ -1321,6 +1321,7 @@
         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;