From 03f0a6cd93da2a10f7be8f9616fe807a6c41d8c8 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Fri, 25 Oct 2024 20:04:09 +0200 Subject: zip: Handle additional error codes --- zip/zip.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'zip') diff --git a/zip/zip.cpp b/zip/zip.cpp index c6db221..4ccf693 100644 --- a/zip/zip.cpp +++ b/zip/zip.cpp @@ -133,7 +133,12 @@ zip_error_to_gerror (CZipException e, GError **error) // case CZipException::bzUnexpectedEof: return cVFS_ReadErr; // Bzlib library error. // case CZipException::bzOutbuffFull: return cVFS_ReadErr; // Bzlib library error. // case CZipException::bzConfigError: return cVFS_ReadErr; // Bzlib library error. -// case CZipException::bzInternalError: return cVFS_ReadErr; // Internal Bzlib library error. +// case CZipException::bzInternalError: return cVFS_ReadErr; // Internal Bzlib library error. + + /* 1 - 199 reserved for errno (from STL) values - used only in non-MFC versions */ + case 1 ... 199: + code = g_io_error_from_errno (e.m_iCause); + break; default: code = G_IO_ERROR_FAILED; break; -- cgit v1.2.3