30 lines
862 B
Diff
30 lines
862 B
Diff
From 0c955aa208411eac10a067c72ce2e642697fd533 Mon Sep 17 00:00:00 2001
|
|
From: Thomas Klausner <tk@giga.or.at>
|
|
Date: Sat, 19 Jun 2021 19:24:43 +0200
|
|
Subject: [PATCH] Return false instead of -1.
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Noted by Rafał Mikrut in #245
|
|
---
|
|
lib/zip_source_file_win32.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/lib/zip_source_file_win32.c b/lib/zip_source_file_win32.c
|
|
index 6547fc20..0dea2c11 100644
|
|
--- a/lib/zip_source_file_win32.c
|
|
+++ b/lib/zip_source_file_win32.c
|
|
@@ -115,7 +115,7 @@ _zip_win32_op_seek(zip_source_file_context_t *ctx, void *f, zip_int64_t offset,
|
|
break;
|
|
default:
|
|
zip_error_set(&ctx->error, ZIP_ER_SEEK, EINVAL);
|
|
- return -1;
|
|
+ return false;
|
|
}
|
|
|
|
li.QuadPart = (LONGLONG)offset;
|
|
--
|
|
2.36.1
|
|
|