diff options
Diffstat (limited to 'abs/extra/mednafen/mednafen-0.8.13.3-zlib-1.2.6.patch')
-rw-r--r-- | abs/extra/mednafen/mednafen-0.8.13.3-zlib-1.2.6.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/abs/extra/mednafen/mednafen-0.8.13.3-zlib-1.2.6.patch b/abs/extra/mednafen/mednafen-0.8.13.3-zlib-1.2.6.patch new file mode 100644 index 0000000..9437f76 --- /dev/null +++ b/abs/extra/mednafen/mednafen-0.8.13.3-zlib-1.2.6.patch @@ -0,0 +1,29 @@ +--- mednafen.orig/src/file.cpp ++++ mednafen/src/file.cpp +@@ -229,7 +229,7 @@ + goto doret; + } + +- while((howmany = gzread(tz, tmp->data + cur_size, cur_alloced - cur_size)) > 0) ++ while((howmany = gzread((gzFile)tz, tmp->data + cur_size, cur_alloced - cur_size)) > 0) + { + cur_size += howmany; + cur_alloced <<= 1; +@@ -282,7 +282,7 @@ + } + else if(type == MDFN_FILETYPE_GZIP) + { +- gzclose(tz); ++ gzclose((gzFile)tz); + } + else if(type == MDFN_FILETYPE_ZIP) + { +@@ -444,7 +444,7 @@ + + if(!(fceufp = MakeMemWrap(t, 1))) + { +- gzclose(t); ++ gzclose((gzFile)t); + return(0); + } + |