Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/C
diff options
context:
space:
mode:
authorIgor Pavlov <ipavlov@users.sourceforge.net>2010-09-08 04:00:00 +0400
committerKornel LesiƄski <kornel@geekhood.net>2016-05-28 02:16:03 +0300
commit044e4bb7413beb329edfa3ad27b492d819cdc811 (patch)
tree9da146355814669c1c9331c596edce0acd21c490 /C
parente279500d76f1944ba26526f085030909a2c7ef49 (diff)
9.169.16
Diffstat (limited to 'C')
-rwxr-xr-xC/7zVersion.h6
-rwxr-xr-xC/Util/7z/7zMain.c23
2 files changed, 17 insertions, 12 deletions
diff --git a/C/7zVersion.h b/C/7zVersion.h
index 8f2d576f..391bb7ac 100755
--- a/C/7zVersion.h
+++ b/C/7zVersion.h
@@ -1,7 +1,7 @@
#define MY_VER_MAJOR 9
-#define MY_VER_MINOR 15
+#define MY_VER_MINOR 16
#define MY_VER_BUILD 0
-#define MY_VERSION "9.15 beta"
-#define MY_DATE "2010-06-20"
+#define MY_VERSION "9.16 beta"
+#define MY_DATE "2010-09-08"
#define MY_COPYRIGHT ": Igor Pavlov : Public domain"
#define MY_VERSION_COPYRIGHT_DATE MY_VERSION " " MY_COPYRIGHT " : " MY_DATE
diff --git a/C/Util/7z/7zMain.c b/C/Util/7z/7zMain.c
index 21c729c5..5fb35c65 100755
--- a/C/Util/7z/7zMain.c
+++ b/C/Util/7z/7zMain.c
@@ -1,5 +1,5 @@
/* 7zMain.c - Test application for 7z Decoder
-2010-03-12 : Igor Pavlov : Public domain */
+2010-07-13 : Igor Pavlov : Public domain */
#include <stdio.h>
#include <string.h>
@@ -104,7 +104,7 @@ static SRes Utf16_To_Utf8Buf(CBuf *dest, const UInt16 *src, size_t srcLen)
}
#endif
-static WRes Utf16_To_Char(CBuf *buf, const UInt16 *s, int fileMode)
+static SRes Utf16_To_Char(CBuf *buf, const UInt16 *s, int fileMode)
{
int len = 0;
for (len = 0; s[len] != '\0'; len++);
@@ -172,15 +172,16 @@ static WRes OutFile_OpenUtf16(CSzFile *p, const UInt16 *name)
#endif
}
-static void PrintString(const UInt16 *s)
+static SRes PrintString(const UInt16 *s)
{
CBuf buf;
+ SRes res;
Buf_Init(&buf);
- if (Utf16_To_Char(&buf, s, 0) == 0)
- {
+ res = Utf16_To_Char(&buf, s, 0);
+ if (res == SZ_OK)
printf("%s", buf.data);
- Buf_Free(&buf, &g_Alloc);
- }
+ Buf_Free(&buf, &g_Alloc);
+ return res;
}
static void UInt64ToStr(UInt64 value, char *s)
@@ -398,7 +399,9 @@ int MY_CDECL main(int numargs, char *args[])
}
printf("%s %s %10s ", t, attr, s);
- PrintString(temp);
+ res = PrintString(temp);
+ if (res != SZ_OK)
+ break;
if (f->IsDir)
printf("/");
printf("\n");
@@ -407,7 +410,9 @@ int MY_CDECL main(int numargs, char *args[])
printf(testCommand ?
"Testing ":
"Extracting ");
- PrintString(temp);
+ res = PrintString(temp);
+ if (res != SZ_OK)
+ break;
if (f->IsDir)
printf("/");
else