|
@@ -2731,13 +2731,15 @@ PHYSFS_File *PHYSFS_openRead(const char *_fname)
|
|
|
io->destroy(io);
|
|
io->destroy(io);
|
|
|
PHYSFS_setErrorCode(PHYSFS_ERR_OUT_OF_MEMORY);
|
|
PHYSFS_setErrorCode(PHYSFS_ERR_OUT_OF_MEMORY);
|
|
|
} /* if */
|
|
} /* if */
|
|
|
-
|
|
|
|
|
- memset(fh, '\0', sizeof (FileHandle));
|
|
|
|
|
- fh->io = io;
|
|
|
|
|
- fh->forReading = 1;
|
|
|
|
|
- fh->dirHandle = i;
|
|
|
|
|
- fh->next = openReadList;
|
|
|
|
|
- openReadList = fh;
|
|
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ memset(fh, '\0', sizeof (FileHandle));
|
|
|
|
|
+ fh->io = io;
|
|
|
|
|
+ fh->forReading = 1;
|
|
|
|
|
+ fh->dirHandle = i;
|
|
|
|
|
+ fh->next = openReadList;
|
|
|
|
|
+ openReadList = fh;
|
|
|
|
|
+ } /* else */
|
|
|
} /* if */
|
|
} /* if */
|
|
|
} /* if */
|
|
} /* if */
|
|
|
|
|
|