From: <lab...@us...> - 2019-07-15 21:33:28
|
Revision: 1585 http://sourceforge.net/p/opengtoolkit/svn/1585 Author: labviewer Date: 2019-07-15 21:33:27 +0000 (Mon, 15 Jul 2019) Log Message: ----------- Change globalCommet back to a normal C string Modified Paths: -------------- trunk/lvzip/c_source/lvapi.c trunk/lvzip/c_source/lvapi.h Modified: trunk/lvzip/c_source/lvapi.c =================================================================== --- trunk/lvzip/c_source/lvapi.c 2019-07-02 18:51:29 UTC (rev 1584) +++ trunk/lvzip/c_source/lvapi.c 2019-07-15 21:33:27 UTC (rev 1585) @@ -362,7 +362,7 @@ * stream: A handle to return the compresses zip archive for memory streams * ****************************************************************************************************/ -LibAPI(MgErr) lvzlib_zipClose(LVRefNum *refnum, const LStrHandle globalComment, LStrHandle *stream) +LibAPI(MgErr) lvzlib_zipClose(LVRefNum *refnum, const char *globalComment, LStrHandle *stream) { zipFile node; MgErr err = lvzlibDisposeRefnum(refnum, &node, ZipMagic); @@ -369,7 +369,7 @@ if (!err) { *refnum = kNotARefNum; - err = LibToMgErr(zipClose2(node, (const char*)LStrBufH(globalComment), VERSIONMADEBY, (voidpf*)stream)); + err = LibToMgErr(zipClose2(node, globalComment, VERSIONMADEBY, (voidpf*)stream)); } return err; } Modified: trunk/lvzip/c_source/lvapi.h =================================================================== --- trunk/lvzip/c_source/lvapi.h 2019-07-02 18:51:29 UTC (rev 1584) +++ trunk/lvzip/c_source/lvapi.h 2019-07-15 21:33:27 UTC (rev 1585) @@ -45,7 +45,7 @@ LibAPI(MgErr) lvzlib_zipWriteInFileInZip(LVRefNum *refnum, const LStrHandle buffer); LibAPI(MgErr) lvzlib_zipCloseFileInZipRaw32(LVRefNum *refnum, uInt32 uncompressedSize, uInt32 crc32); LibAPI(MgErr) lvzlib_zipCloseFileInZipRaw64(LVRefNum *refnum, uInt64 uncompressedSize, uInt32 crc32); -LibAPI(MgErr) lvzlib_zipClose(LVRefNum *refnum, const LStrHandle globalComment, LStrHandle *stream); +LibAPI(MgErr) lvzlib_zipClose(LVRefNum *refnum, const char *globalComment, LStrHandle *stream); /* exported unzip functions */ LibAPI(MgErr) lvzlib_unzOpen(const void *pathname, zlib_filefunc64_def* filefuncs, LVRefNum *refnum); LibAPI(MgErr) lvzlib_unzClose(LVRefNum *refnum, LStrHandle *stream); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |