archivers/zip.c
changeset 494 364e564a26e2
parent 491 b8853d8a09cb
child 504 3420d82f9b01
equal deleted inserted replaced
493:4eaefa58e259 494:364e564a26e2
  1291 
  1291 
  1292 
  1292 
  1293 static int ZIP_isDirectory(DirHandle *h, const char *name, int *fileExists)
  1293 static int ZIP_isDirectory(DirHandle *h, const char *name, int *fileExists)
  1294 {
  1294 {
  1295     ZIPinfo *info = (ZIPinfo *) h->opaque;
  1295     ZIPinfo *info = (ZIPinfo *) h->opaque;
  1296     PHYSFS_sint32 pos;
       
  1297     int isDir;
  1296     int isDir;
  1298     ZIPentry *entry = zip_find_entry(info, name, &isDir);
  1297     ZIPentry *entry = zip_find_entry(info, name, &isDir);
  1299 
  1298 
  1300     *fileExists = ((isDir) || (entry != NULL));
  1299     *fileExists = ((isDir) || (entry != NULL));
  1301     if (isDir)
  1300     if (isDir)