@@ -18,7 +18,7 @@ c:\mingw32\bin\g++ -m32 -O3 zsfx.cpp libzpaq.cpp -o zsfx32 -pthread -static
18
18
19
19
*/
20
20
21
- #define ZSFX_VERSION " 52.2 "
21
+ #define ZSFX_VERSION " 52.3 "
22
22
#define _FILE_OFFSET_BITS 64 // In Linux make sizeof(off_t) == 8
23
23
#define UNICODE // For Windows
24
24
#include " libzpaq.h"
@@ -95,7 +95,8 @@ inline char * migliaia(uint64_t n)
95
95
// Handle errors in libzpaq and elsewhere
96
96
void libzpaq::error (const char * msg) {
97
97
if (strstr (msg, " ut of memory" )) throw std::bad_alloc ();
98
- throw std::runtime_error (msg);
98
+ printf (" %s\n " ,msg);
99
+ exit (0 );
99
100
}
100
101
using libzpaq::error;
101
102
@@ -318,8 +319,8 @@ const bool ads=strstr(filename, ":$DATA")!=0; // alternate data stream?
318
319
// Print file open error and throw exception
319
320
void ioerr (const char * msg) {
320
321
printerr (msg);
321
- throw std::runtime_error (msg );
322
- }
322
+ exit ( 0 );
323
+ }
323
324
324
325
// Create directories as needed. For example if path="/tmp/foo/bar"
325
326
// then create directories /, /tmp, and /tmp/foo unless they exist.
@@ -2158,11 +2159,13 @@ string Jidac::findcommand(int64_t& o_offset)
2158
2159
string comando=" " ;
2159
2160
readSize = fread (buffer, 1 , blockSize, inFile);
2160
2161
2161
- if (readSize==blockSize)
2162
- {
2163
- printf (" 2290: SFX module seems huge!\n " );
2164
- exit (0 );
2165
- }
2162
+ bool flagbuilder=(myname==" zsfx.exe" )||(myname==" zsfx32.exe" );
2163
+ if (flagbuilder)
2164
+ if (readSize==blockSize)
2165
+ {
2166
+ printf (" 2290: SFX module seems huge!\n " );
2167
+ exit (0 );
2168
+ }
2166
2169
2167
2170
if (readSize<=0 )
2168
2171
{
0 commit comments