Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
92cc5868
Commit
92cc5868
authored
22 years ago
by
Gregory M. Turner
Committed by
Alexandre Julliard
22 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix some problems when Extract is used more than once.
parent
714148c5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/cabinet/cabextract.c
+4
-0
4 additions, 0 deletions
dlls/cabinet/cabextract.c
dlls/cabinet/cabinet.h
+2
-2
2 additions, 2 deletions
dlls/cabinet/cabinet.h
with
6 additions
and
2 deletions
dlls/cabinet/cabextract.c
+
4
−
0
View file @
92cc5868
...
...
@@ -46,6 +46,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(cabinet);
*/
cab_UBYTE
search_buf
[
CAB_SEARCH_SIZE
];
cab_decomp_state
decomp_state
;
/* all the file IO is abstracted into these routines:
* cabinet_(open|close|read|seek|skip|getoffset)
* file_(open|close|write)
...
...
@@ -2771,6 +2773,8 @@ BOOL process_cabinet(LPCSTR cabname, LPCSTR dir, BOOL fix, BOOL lower)
/* has the list-mode header been seen before? */
int
viewhdr
=
0
;
ZeroMemory
(
&
decomp_state
,
sizeof
(
cab_decomp_state
));
TRACE
(
"Extract %s
\n
"
,
debugstr_a
(
cabname
));
/* load the file requested */
...
...
This diff is collapsed.
Click to expand it.
dlls/cabinet/cabinet.h
+
2
−
2
View file @
92cc5868
...
...
@@ -269,7 +269,7 @@ struct cabinet {
cab_UBYTE
flags
;
/* header flags */
};
struct
{
typedef
struct
{
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 */
...
...
@@ -283,7 +283,7 @@ struct {
struct
QTMstate
qtm
;
struct
LZXstate
lzx
;
}
methods
;
}
decomp_state
;
}
cab_
decomp_state
;
/* from cabextract.c */
BOOL
process_cabinet
(
LPCSTR
cabname
,
LPCSTR
dir
,
BOOL
fix
,
BOOL
lower
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment