summaryrefslogtreecommitdiff
path: root/zip
diff options
context:
space:
mode:
Diffstat (limited to 'zip')
-rw-r--r--zip/zip.cpp7
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;