Corrected an error in the new zlib GDS reading code that missed
changing the "rewind" function to "gzrewind", causing a crash when a GDS file has to be re-read due to out-of-order contents.
This commit is contained in:
parent
250d811fc5
commit
93c96c23a1
|
|
@ -142,7 +142,7 @@ calmaSetPosition(sname)
|
|||
|
||||
if (originalPos != 0)
|
||||
{
|
||||
rewind(calmaInputFile);
|
||||
REWIND(calmaInputFile);
|
||||
CalmaRewound = TRUE;
|
||||
calmaSetPosition(sname);
|
||||
if (!CalmaPostOrder)
|
||||
|
|
|
|||
|
|
@ -148,6 +148,7 @@ typedef enum { LABEL_TYPE_NONE, LABEL_TYPE_TEXT, LABEL_TYPE_PORT, LABEL_TYPE_CEL
|
|||
#define FEOF gzeof
|
||||
#define FSEEK gzseek
|
||||
#define FTELL gztell
|
||||
#define REWIND gzrewind
|
||||
#define FILETYPE gzFile
|
||||
#define OFFTYPE z_off_t
|
||||
#else
|
||||
|
|
@ -158,6 +159,7 @@ typedef enum { LABEL_TYPE_NONE, LABEL_TYPE_TEXT, LABEL_TYPE_PORT, LABEL_TYPE_CEL
|
|||
#define FEOF feof
|
||||
#define FSEEK fseek
|
||||
#define FTELL ftello
|
||||
#define REWIND rewind
|
||||
#define FILETYPE FILE *
|
||||
#define OFFTYPE off_t
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue