Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
03e0a496
Commit
03e0a496
authored
Jun 13, 2003
by
Gregory M. Turner
Committed by
Alexandre Julliard
Jun 13, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- paranoia: eliminate some global variables
- better reminder on how to fix memory leaks
parent
a4a5e9ae
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
cabextract.c
dlls/cabinet/cabextract.c
+0
-0
cabinet.h
dlls/cabinet/cabinet.h
+6
-6
No files found.
dlls/cabinet/cabextract.c
View file @
03e0a496
This diff is collapsed.
Click to expand it.
dlls/cabinet/cabinet.h
View file @
03e0a496
...
...
@@ -211,10 +211,10 @@ struct LZXstate {
};
/* generic stuff */
#define CAB(x) (decomp_state
.
x)
#define ZIP(x) (decomp_state
.
methods.zip.x)
#define QTM(x) (decomp_state
.
methods.qtm.x)
#define LZX(x) (decomp_state
.
methods.lzx.x)
#define CAB(x) (decomp_state
->
x)
#define ZIP(x) (decomp_state
->
methods.zip.x)
#define QTM(x) (decomp_state
->
methods.qtm.x)
#define LZX(x) (decomp_state
->
methods.lzx.x)
#define DECR_OK (0)
#define DECR_DATAFORMAT (1)
#define DECR_ILLEGALDATA (2)
...
...
@@ -269,13 +269,13 @@ struct cabinet {
cab_UBYTE
flags
;
/* header flags */
};
typedef
struct
{
typedef
struct
cds_forward
{
struct
cab_folder
*
current
;
/* current folder we're extracting from */
cab_ULONG
offset
;
/* uncompressed offset within folder */
cab_UBYTE
*
outpos
;
/* (high level) start of data to use up */
cab_UWORD
outlen
;
/* (high level) amount of data to use up */
cab_UWORD
split
;
/* at which split in current folder? */
int
(
*
decompress
)(
int
,
int
);
/* the chosen compression func */
int
(
*
decompress
)(
int
,
int
,
struct
cds_forward
*
);
/* the chosen compression func */
cab_UBYTE
inbuf
[
CAB_INPUTMAX
+
2
];
/* +2 for lzx bitbuffer overflows! */
cab_UBYTE
outbuf
[
CAB_BLOCKMAX
];
union
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment