Guest User

Untitled

a guest
Jul 19th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. --- milkytracker-0.90.85/src/compression/DecompressorGZIP.cpp 2009-04-17 22:34:16.000000000 +0200
  2. +++ milkytracker-trunk/src/compression/DecompressorGZIP.cpp 2012-02-20 20:24:49.161937553 +0100
  3. @@ -61,7 +61,7 @@
  4. int len = 0;
  5. pp_uint8 *buf;
  6.  
  7. - if ((gz_input_file = (void **)gzopen (fileName.getStrBuffer(), "r")) == NULL)
  8. + if ((gz_input_file = (gzFile*)gzopen (fileName.getStrBuffer(), "r")) == NULL)
  9. return false;
  10.  
  11. if ((buf = new pp_uint8[0x10000]) == NULL)
  12. @@ -71,7 +71,7 @@
  13.  
  14. while (true)
  15. {
  16. - len = gzread (gz_input_file, buf, 0x10000);
  17. + len = gzread (*gz_input_file, buf, 0x10000);
  18.  
  19. if (len < 0)
  20. {
  21. @@ -84,7 +84,7 @@
  22. fOut.write(buf, 1, len);
  23. }
  24.  
  25. - if (gzclose (gz_input_file) != Z_OK)
  26. + if (gzclose (*gz_input_file) != Z_OK)
  27. {
  28. delete[] buf;
  29. return false;
Add Comment
Please, Sign In to add comment