| 1928 | } |
| 1929 | |
| 1930 | int Write_GlobalComment(zip64_internal* zi, const char* global_comment) |
| 1931 | { |
| 1932 | int err = ZIP_OK; |
| 1933 | uInt size_global_comment = 0; |
| 1934 | |
| 1935 | if(global_comment != NULL) |
| 1936 | size_global_comment = (uInt)strlen(global_comment); |
| 1937 | |
| 1938 | err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)size_global_comment,2); |
| 1939 | |
| 1940 | if (err == ZIP_OK && size_global_comment > 0) |
| 1941 | { |
| 1942 | if (ZWRITE64(zi->z_filefunc,zi->filestream, global_comment, size_global_comment) != size_global_comment) |
| 1943 | err = ZIP_ERRNO; |
| 1944 | } |
| 1945 | return err; |
| 1946 | } |
| 1947 | |
| 1948 | extern int ZEXPORT zipClose (zipFile file, const char* global_comment) |
| 1949 | { |
no test coverage detected