Deleted Added
full compact
archive_read_support_format_rar.c (342360) archive_read_support_format_rar.c (348607)
1/*-
2* Copyright (c) 2003-2007 Tim Kientzle
3* Copyright (c) 2011 Andres Mejia
4* All rights reserved.
5*
6* Redistribution and use in source and binary forms, with or without
7* modification, are permitted provided that the following conditions
8* are met:

--- 1010 unchanged lines hidden (view full) ---

1019 break;
1020
1021 case COMPRESS_METHOD_FASTEST:
1022 case COMPRESS_METHOD_FAST:
1023 case COMPRESS_METHOD_NORMAL:
1024 case COMPRESS_METHOD_GOOD:
1025 case COMPRESS_METHOD_BEST:
1026 ret = read_data_compressed(a, buff, size, offset);
1/*-
2* Copyright (c) 2003-2007 Tim Kientzle
3* Copyright (c) 2011 Andres Mejia
4* All rights reserved.
5*
6* Redistribution and use in source and binary forms, with or without
7* modification, are permitted provided that the following conditions
8* are met:

--- 1010 unchanged lines hidden (view full) ---

1019 break;
1020
1021 case COMPRESS_METHOD_FASTEST:
1022 case COMPRESS_METHOD_FAST:
1023 case COMPRESS_METHOD_NORMAL:
1024 case COMPRESS_METHOD_GOOD:
1025 case COMPRESS_METHOD_BEST:
1026 ret = read_data_compressed(a, buff, size, offset);
1027 if (ret != ARCHIVE_OK && ret != ARCHIVE_WARN)
1027 if (ret != ARCHIVE_OK && ret != ARCHIVE_WARN) {
1028 __archive_ppmd7_functions.Ppmd7_Free(&rar->ppmd7_context);
1028 __archive_ppmd7_functions.Ppmd7_Free(&rar->ppmd7_context);
1029 rar->start_new_table = 1;
1030 }
1029 break;
1030
1031 default:
1032 archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT,
1033 "Unsupported compression method for RAR file.");
1034 ret = ARCHIVE_FATAL;
1035 break;
1036 }

--- 1921 unchanged lines hidden ---
1031 break;
1032
1033 default:
1034 archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT,
1035 "Unsupported compression method for RAR file.");
1036 ret = ARCHIVE_FATAL;
1037 break;
1038 }

--- 1921 unchanged lines hidden ---