Skip to content

Commit

Permalink
Update comments style in various code files
Browse files Browse the repository at this point in the history
  • Loading branch information
GengGode authored and nmoinvaz committed Dec 29, 2023
1 parent 0211461 commit d1f4d18
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mz_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ int zipOpenNewFileInZip5(zipFile file, const char *filename, const zip_fileinfo
if (!compat)
return ZIP_PARAMERROR;

// The filename and comment length must fit in 16 bits.
/* The filename and comment length must fit in 16 bits. */
if (filename && strlen(filename) > 0xffff)
return ZIP_PARAMERROR;
if (comment && strlen(comment) > 0xffff)
Expand Down
2 changes: 1 addition & 1 deletion mz_os_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ int32_t mz_os_make_symlink(const char *path, const char *target_path) {
if (!path)
return MZ_PARAM_ERROR;

// Use VirtualQuery instead of GetModuleHandleW for UWP
/* Use VirtualQuery instead of GetModuleHandleW for UWP */
memset(&mbi, 0, sizeof(mbi));
VirtualQuery(VirtualQuery, &mbi, sizeof(mbi));
kernel32_mod = (HMODULE)mbi.AllocationBase;
Expand Down
4 changes: 2 additions & 2 deletions mz_zip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ static int32_t mz_zip_write_cd(void *handle) {
zip->disk_number_with_cd += 1;
mz_stream_set_prop_int64(zip->stream, MZ_STREAM_PROP_DISK_NUMBER, -1);
if ((zip->disk_number_with_cd > 0) && (zip->open_mode & MZ_OPEN_MODE_APPEND)) {
// Overwrite existing central directory if using split disks
/* Overwrite existing central directory if using split disks */
mz_stream_seek(zip->stream, 0, MZ_SEEK_SET);
}

Expand All @@ -1129,7 +1129,7 @@ static int32_t mz_zip_write_cd(void *handle) {
zip->disk_number_with_cd, zip->number_entry, zip->cd_offset, zip->cd_size);

if (zip->cd_size == 0 && zip->number_entry > 0) {
// Zip does not contain central directory, open with recovery option
/* Zip does not contain central directory, open with recovery option */
return MZ_FORMAT_ERROR;
}

Expand Down

0 comments on commit d1f4d18

Please sign in to comment.