src/physfs.c
changeset 1683 89e8d39420cd
parent 1660 89e1b79e10c6
child 1692 acdcf93d1f9b
equal deleted inserted replaced
1682:03f9ef386940 1683:89e8d39420cd
  2729             if (fh == NULL)
  2729             if (fh == NULL)
  2730             {
  2730             {
  2731                 io->destroy(io);
  2731                 io->destroy(io);
  2732                 PHYSFS_setErrorCode(PHYSFS_ERR_OUT_OF_MEMORY);
  2732                 PHYSFS_setErrorCode(PHYSFS_ERR_OUT_OF_MEMORY);
  2733             } /* if */
  2733             } /* if */
  2734 
  2734             else
  2735             memset(fh, '\0', sizeof (FileHandle));
  2735             {
  2736             fh->io = io;
  2736                 memset(fh, '\0', sizeof (FileHandle));
  2737             fh->forReading = 1;
  2737                 fh->io = io;
  2738             fh->dirHandle = i;
  2738                 fh->forReading = 1;
  2739             fh->next = openReadList;
  2739                 fh->dirHandle = i;
  2740             openReadList = fh;
  2740                 fh->next = openReadList;
       
  2741                 openReadList = fh;
       
  2742             } /* else */
  2741         } /* if */
  2743         } /* if */
  2742     } /* if */
  2744     } /* if */
  2743 
  2745 
  2744     __PHYSFS_platformReleaseMutex(stateLock);
  2746     __PHYSFS_platformReleaseMutex(stateLock);
  2745     __PHYSFS_smallFree(allocated_fname);
  2747     __PHYSFS_smallFree(allocated_fname);