Skip to content
Permalink
Browse files
Backported zip/qpak dir fix from dev branch to stable-1.0.
  • Loading branch information
icculus committed Feb 18, 2011
1 parent ef63e22 commit 205a7d3e63f796702c9be0859fe7fbb0b56f6673
Showing with 8 additions and 2 deletions.
  1. +4 −1 archivers/qpak.c
  2. +4 −1 archivers/zip.c
@@ -554,8 +554,11 @@ static QPAKentry *qpak_find_entry(QPAKinfo *info, const char *path, int *isDir)

if (thispath[pathlen] == '\0') /* found entry? */
return(&a[middle]);
/* adjust search params, try again. */
else if (thispath[pathlen] > '/')
hi = middle - 1;
else
hi = middle - 1; /* adjust search params, try again. */
lo = middle + 1;
} /* if */
} /* while */

@@ -586,8 +586,11 @@ static ZIPentry *zip_find_entry(ZIPinfo *info, const char *path, int *isDir)

if (thispath[pathlen] == '\0') /* found entry? */
return(&a[middle]);
/* adjust search params, try again. */
else if (thispath[pathlen] > '/')
hi = middle - 1;
else
hi = middle - 1; /* adjust search params, try again. */
lo = middle + 1;
} /* if */
} /* while */

0 comments on commit 205a7d3

Please sign in to comment.