archivers/zip.c
changeset 775 a8cc6b8a8e9c
parent 767 db29bf06d171
child 808 7656f86a9a2c
equal deleted inserted replaced
774:916c2e81e77f 775:a8cc6b8a8e9c
   152         case Z_OK: return(NULL);  /* not an error. */
   152         case Z_OK: return(NULL);  /* not an error. */
   153         case Z_STREAM_END: return(NULL); /* not an error. */
   153         case Z_STREAM_END: return(NULL); /* not an error. */
   154 #ifndef _WIN32_WCE
   154 #ifndef _WIN32_WCE
   155         case Z_ERRNO: return(strerror(errno));
   155         case Z_ERRNO: return(strerror(errno));
   156 #endif
   156 #endif
   157         case Z_NEED_DICT: return(ERR_ZLIB_NEED_DICT);
   157         case Z_NEED_DICT: return(ERR_NEED_DICT);
   158         case Z_DATA_ERROR: return(ERR_ZLIB_DATA_ERROR);
   158         case Z_DATA_ERROR: return(ERR_DATA_ERROR);
   159         case Z_MEM_ERROR: return(ERR_ZLIB_MEMORY_ERROR);
   159         case Z_MEM_ERROR: return(ERR_MEMORY_ERROR);
   160         case Z_BUF_ERROR: return(ERR_ZLIB_BUFFER_ERROR);
   160         case Z_BUF_ERROR: return(ERR_BUFFER_ERROR);
   161         case Z_VERSION_ERROR: return(ERR_ZLIB_VERSION_ERROR);
   161         case Z_VERSION_ERROR: return(ERR_VERSION_ERROR);
   162         default: return(ERR_ZLIB_UNKNOWN_ERROR);
   162         default: return(ERR_UNKNOWN_ERROR);
   163     } /* switch */
   163     } /* switch */
   164 
   164 
   165     return(NULL);
   165     return(NULL);
   166 } /* zlib_error_string */
   166 } /* zlib_error_string */
   167 
   167