93{
96 char outfile_basename[
MAX_PATH], *basename_index;
98
100 {
104 return 1;
105 }
106
109 else
111
113 {
115 return 1;
116 }
117
119 {
120 switch (comp)
121 {
123 outfile_basename[0] = 0;
125 {
126 myprintf(
"%s: can't determine original name\n",
argv[0] );
127 return 1;
128 }
130 *basename_index = 0;
132 break;
135 break;
136 default:
138 return 1;
139 }
140 }
141 else
143
145 {
146 myprintf(
"%s: can't expand file to itself\n",
argv[0] );
147 return 1;
148 }
149
150 switch (comp)
151 {
154 {
156 return 1;
157 }
158 break;
160 {
164
166 {
168 return 1;
169 }
171 {
174 return 1;
175 }
177
180
182 {
184 return 1;
185 }
186 break;
187 }
188 default:
190 {
192 return 1;
193 }
194 break;
195 }
197}
char * strcat(char *DstString, const char *SrcString)
BOOL WINAPI CopyFileA(IN LPCSTR lpExistingFileName, IN LPCSTR lpNewFileName, IN BOOL bFailIfExists)
DWORD WINAPI GetFullPathNameA(IN LPCSTR lpFileName, IN DWORD nBufferLength, OUT LPSTR lpBuffer, OUT LPSTR *lpFilePart)
int WINAPI lstrcmpiA(LPCSTR str1, LPCSTR str2)
BOOL WINAPI SetupGetFileCompressionInfoExA(PCSTR source, PSTR name, DWORD len, PDWORD required, PDWORD source_size, PDWORD target_size, PUINT type)
BOOL WINAPI SetupIterateCabinetA(PCSTR CabinetFile, DWORD Reserved, PSP_FILE_CALLBACK_A MsgHandler, PVOID Context)
static BOOL option_equal(LPCSTR str1, LPCSTR str2)
static UINT CALLBACK set_outfile(PVOID context, UINT notification, UINT_PTR param1, UINT_PTR param2)
static int myprintf(const char *format,...)
static UINT CALLBACK extract_callback(PVOID context, UINT notification, UINT_PTR param1, UINT_PTR param2)
LONG WINAPI LZCopy(HFILE src, HFILE dest)
void WINAPI LZClose(HFILE fd)
HFILE WINAPI LZOpenFileA(LPSTR fn, LPOFSTRUCT ofs, WORD mode)
INT WINAPI GetExpandedNameA(LPSTR in, LPSTR out)
#define FILE_COMPRESSION_WINLZA
#define FILE_COMPRESSION_MSZIP