diff options
| author | Tomas Bzatek <tbzatek@redhat.com> | 2024-10-25 20:04:09 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@redhat.com> | 2024-10-25 20:06:41 +0200 |
| commit | 03f0a6cd93da2a10f7be8f9616fe807a6c41d8c8 (patch) | |
| tree | 3d56e175263811f4581db0a026f10d204877a3d7 | |
| parent | d1b057c4e3b865dc511cd2b5b591371303323272 (diff) | |
| download | tuxcmd-modules-03f0a6cd93da2a10f7be8f9616fe807a6c41d8c8.tar.xz | |
zip: Handle additional error codes
| -rw-r--r-- | zip/zip.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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; |
