41 windowBits < 8 || windowBits > 15)
87 static int virgin = 1;
98 while (sym < 144)
state->lens[sym++] = 8;
99 while (sym < 256)
state->lens[sym++] = 9;
100 while (sym < 280)
state->lens[sym++] = 7;
101 while (sym < 288)
state->lens[sym++] = 8;
109 while (sym < 32)
state->lens[sym++] = 5;
131 put = strm->next_out; \
132 left = strm->avail_out; \
133 next = strm->next_in; \
134 have = strm->avail_in; \
135 hold = state->hold; \
136 bits = state->bits; \
142 strm->next_out = put; \
143 strm->avail_out = left; \
144 strm->next_in = next; \
145 strm->avail_in = have; \
146 state->hold = hold; \
147 state->bits = bits; \
162 have = in(in_desc, &next); \
177 hold += (unsigned long)(*next++) << bits; \
186 while (bits < (unsigned)(n)) \
192 ((unsigned)hold & ((1U << (n)) - 1))
198 bits -= (unsigned)(n); \
214 put = state->window; \
215 left = state->wsize; \
216 state->whave = left; \
217 if (out(out_desc, put, left)) { \
270 static const unsigned short order[19] =
271 {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15};
292 switch (
state->mode) {
306 state->last ?
" (last)" :
""));
312 state->last ?
" (last)" :
""));
317 state->last ?
" (last)" :
""));
321 strm->msg = (
char *)
"invalid block type";
331 if ((
hold & 0xffff) != ((
hold >> 16) ^ 0xffff)) {
332 strm->msg = (
char *)
"invalid stored block lengths";
342 while (
state->length != 0) {
368#ifndef PKZIP_BUG_WORKAROUND
370 strm->msg = (
char *)
"too many length or distance symbols";
384 while (
state->have < 19)
392 strm->msg = (
char *)
"invalid code lengths set";
403 if ((
unsigned)(here.
bits) <=
bits)
break;
411 if (here.
val == 16) {
414 if (
state->have == 0) {
415 strm->msg = (
char *)
"invalid bit length repeat";
423 else if (here.
val == 17) {
438 strm->msg = (
char *)
"invalid bit length repeat";
451 if (
state->lens[256] == 0) {
452 strm->msg = (
char *)
"invalid code -- missing end-of-block";
466 strm->msg = (
char *)
"invalid literal/lengths set";
475 strm->msg = (
char *)
"invalid distances set";
497 if ((
unsigned)(here.
bits) <=
bits)
break;
500 if (here.
op && (here.
op & 0xf0) == 0) {
516 "inflate: literal '%c'\n" :
517 "inflate: literal 0x%02x\n", here.
val));
534 strm->msg = (
char *)
"invalid literal/length code";
541 if (
state->extra != 0) {
551 if ((
unsigned)(here.
bits) <=
bits)
break;
554 if ((here.
op & 0xf0) == 0) {
566 strm->msg = (
char *)
"invalid distance code";
573 state->extra = (
unsigned)(here.
op) & 15;
574 if (
state->extra != 0) {
581 strm->msg = (
char *)
"invalid distance too far back";
605 }
while (
state->length != 0);
625 if (left < state->
wsize) {
ios_base &_STLP_CALL fixed(ios_base &__s)
INT copy(TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], INT append, DWORD lpdwFlags, BOOL bTouch)
static int inflate_table(codetype type, unsigned short FAR *lens, unsigned codes, code FAR *FAR *table, unsigned FAR *bits, unsigned short FAR *work)
#define ZALLOC(strm, items, size)
static void inflate_fast(z_streamp strm, unsigned start)
#define ZFREE(strm, addr)
void(* free_func)(voidpf opaque, voidpf address)
voidpf(* alloc_func)(voidpf opaque, uInt items, uInt size)
static const WCHAR version[]
unsigned short(__cdecl typeof(TIFFCurrentDirectory))(struct tiff *)
void zcfree(voidpf opaque, voidpf ptr)
voidpf zcalloc(voidpf opaque, unsigned items, unsigned size)
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
GLuint GLdouble GLdouble GLint GLint order
int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits, unsigned char FAR *window, const char *version, int stream_size)
void fixedtables(struct inflate_state FAR *state)
int ZEXPORT inflateBack(z_streamp strm, in_func in, void FAR *in_desc, out_func out, void FAR *out_desc)
int ZEXPORT inflateBackEnd(z_streamp strm)
static IHTMLWindow2 * window
static unsigned(__cdecl *hash_bstr)(bstr_t s)
static unsigned __int64 next
int const char int stream_size
static const code distfix[32]
static const code lenfix[512]