Rev 6863 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6863 | Rev 6873 | ||
---|---|---|---|
Line 339... | Line 339... | ||
339 | jmp .end_f |
339 | jmp .end_f |
340 | @@: |
340 | @@: |
341 | mov edi,eax ;edi = s |
341 | mov edi,eax ;edi = s |
342 | mov [ebx+z_stream.state],edi |
342 | mov [ebx+z_stream.state],edi |
343 | mov [edi+deflate_state.strm],ebx |
343 | mov [edi+deflate_state.strm],ebx |
- | 344 | mov dword[edi+deflate_state.status],INIT_STATE ;to pass state test in deflateReset() |
|
Line 344... | Line 345... | ||
344 | 345 | ||
345 | mov eax,[wrap] |
346 | mov eax,[wrap] |
346 | mov [edi+deflate_state.wrap],eax |
347 | mov [edi+deflate_state.wrap],eax |
347 | mov [edi+deflate_state.gzhead],Z_NULL |
348 | mov [edi+deflate_state.gzhead],Z_NULL |
Line 1007... | Line 1008... | ||
1007 | 1008 | ||
1008 | stdcall _tr_flush_bits, edx |
1009 | stdcall _tr_flush_bits, edx |
1009 | mov ecx,[edx+deflate_state.pending] |
1010 | mov ecx,[edx+deflate_state.pending] |
1010 | mov eax,[ebx+z_stream.avail_out] |
1011 | mov eax,[ebx+z_stream.avail_out] |
1011 | cmp ecx,eax |
1012 | cmp ecx,eax |
1012 | jle @f ;if (..>..) |
1013 | jbe @f ;if (..>..) |
1013 | mov ecx,eax |
1014 | mov ecx,eax |
1014 | @@: |
1015 | @@: |
1015 | test ecx,ecx |
1016 | test ecx,ecx |
Line 1218... | Line 1219... | ||
1218 | je @f ;if (..!=0) |
1219 | je @f ;if (..!=0) |
1219 | mov ecx,[ebx+z_stream.adler] |
1220 | mov ecx,[ebx+z_stream.adler] |
1220 | bswap ecx |
1221 | bswap ecx |
1221 | put_dword edi, ecx |
1222 | put_dword edi, ecx |
1222 | @@: |
1223 | @@: |
1223 | xor eax,eax ;stdcall calc_crc32, 0, Z_NULL, 0 |
1224 | stdcall adler32, 0,0,0 |
1224 | mov [ebx+z_stream.adler],eax |
1225 | mov [ebx+z_stream.adler],eax |
1225 | .end2: |
1226 | .end2: |
1226 | if GZIP eq 1 |
1227 | if GZIP eq 1 |
1227 | mov edx,[edi+deflate_state.gzhead] |
1228 | mov edx,[edi+deflate_state.gzhead] |
1228 | cmp dword[edi+deflate_state.status],EXTRA_STATE |
1229 | cmp dword[edi+deflate_state.status],EXTRA_STATE |
Line 1770... | Line 1771... | ||
1770 | proc read_buf uses ebx ecx, strm:dword, buf:dword, size:dword |
1771 | proc read_buf uses ebx ecx, strm:dword, buf:dword, size:dword |
1771 | mov ebx,[strm] |
1772 | mov ebx,[strm] |
1772 | mov eax,[ebx+z_stream.avail_in] |
1773 | mov eax,[ebx+z_stream.avail_in] |
Line 1773... | Line 1774... | ||
1773 | 1774 | ||
1774 | cmp eax,[size] |
1775 | cmp eax,[size] |
1775 | jle @f ;if (..>..) |
1776 | jbe @f ;if (..>..) |
1776 | mov eax,[size] |
1777 | mov eax,[size] |
1777 | @@: |
1778 | @@: |
1778 | cmp eax,0 |
1779 | cmp eax,0 |
1779 | jg @f |
1780 | jg @f |