diff --git a/Components/Lzma2/Util/7z/7zMain.c b/Components/Lzma2/Util/7z/7zMain.c index 80109c95d..9637f917e 100644 --- a/Components/Lzma2/Util/7z/7zMain.c +++ b/Components/Lzma2/Util/7z/7zMain.c @@ -4,6 +4,7 @@ /* Changes by Martijn Laan for Inno Setup: -Use CP_UTF8 in PrintString -Change main to mainW to support Unicode archive names + -Add specific error text for SZ_ERROR_NO_ARCHIVE -Return res on errors instead of always returning 1 Otherwise unchanged */ @@ -878,6 +879,8 @@ int Z7_CDECL mainW(int numargs, WCHAR *args[]) PrintError("cannot allocate memory"); else if (res == SZ_ERROR_CRC) PrintError("CRC error"); + else if (res == SZ_ERROR_NO_ARCHIVE) + PrintError("not an archive"); else if (res == SZ_ERROR_READ /* || archiveStream.Res != 0 */) PrintError_WRes("Read Error", archiveStream.wres); else diff --git a/Projects/Src/Compression.SevenZipDecoder/7zDecode/IS7zDec.obj b/Projects/Src/Compression.SevenZipDecoder/7zDecode/IS7zDec.obj index a1f94d2c0..299cf5785 100644 Binary files a/Projects/Src/Compression.SevenZipDecoder/7zDecode/IS7zDec.obj and b/Projects/Src/Compression.SevenZipDecoder/7zDecode/IS7zDec.obj differ