From d19db24df5e8546fd1a9b34a5789c5fb8cee94cc Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 7 Jul 2013 18:55:29 +0200 Subject: [PATCH] Don't use gzclose() on a FILE *. --- src/pak.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pak.cpp b/src/pak.cpp index 226afe4..16beab2 100644 --- a/src/pak.cpp +++ b/src/pak.cpp @@ -119,7 +119,7 @@ void recurseDirectory(const char *dirName) { printf("Couldn't open %s for reading!\n", filename); closedir(dirp); - gzclose(pak); + fclose(pak); exit(1); } @@ -141,7 +141,7 @@ void recurseDirectory(const char *dirName) { printf("Couldn't open %s for reading!\n", filename); closedir(dirp); - gzclose(pak); + fclose(pak); exit(1); } else -- 2.39.5