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
3f5fada7
Commit
3f5fada7
authored
Jan 08, 2004
by
Stefan Leichter
Committed by
Alexandre Julliard
Jan 08, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the linked list with the name of files of the CAB archive.
parent
6cf101c1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
12 deletions
+23
-12
cabextract.c
dlls/cabinet/cabextract.c
+11
-0
cabinet.h
dlls/cabinet/cabinet.h
+7
-1
cabinet_main.c
dlls/cabinet/cabinet_main.c
+5
-11
No files found.
dlls/cabinet/cabextract.c
View file @
3f5fada7
...
...
@@ -2564,6 +2564,7 @@ BOOL process_cabinet(LPCSTR cabname, LPCSTR dir, BOOL fix, BOOL lower, EXTRACTde
{
struct
cabinet
*
basecab
,
*
cab
,
*
cab1
,
*
cab2
;
struct
cab_file
*
filelist
,
*
fi
;
struct
ExtractFileList
**
destlistptr
=
&
(
dest
->
filelist
);
/* The first result of a search will be returned, and
* the remaining results will be chained to it via the cab->next structure
...
...
@@ -2632,6 +2633,16 @@ BOOL process_cabinet(LPCSTR cabname, LPCSTR dir, BOOL fix, BOOL lower, EXTRACTde
strlen
(
dest
->
directory
)
?
dest
->
directory
:
""
,
strlen
(
dest
->
directory
)
?
"
\\
"
:
""
,
fi
->
filename
);
*
destlistptr
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
struct
ExtractFileList
));
if
(
*
destlistptr
)
{
(
*
destlistptr
)
->
unknown
=
TRUE
;
/* FIXME: were do we get the value? */
(
*
destlistptr
)
->
filename
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
strlen
(
fi
->
filename
)
+
1
));
if
((
*
destlistptr
)
->
filename
)
lstrcpyA
((
*
destlistptr
)
->
filename
,
fi
->
filename
);
destlistptr
=
&
((
*
destlistptr
)
->
next
);
}
}
}
...
...
dlls/cabinet/cabinet.h
View file @
3f5fada7
...
...
@@ -553,11 +553,17 @@ static const cab_UWORD Zipmask[17] = {
0x01ff, 0x03ff, 0x07ff, 0x0fff, 0x1fff, 0x3fff, 0x7fff, 0xffff \
}
struct
ExtractFileList
{
LPSTR
filename
;
struct
ExtractFileList
*
next
;
BOOL
unknown
;
/* always 1L */
}
;
/* the first parameter of the function extract */
typedef
struct
{
long
result1
;
/* 0x000 */
long
unknown1
[
3
];
/* 0x004 */
long
result2
;
/* 0x010 */
struct
ExtractFileList
*
filelist
;
/* 0x010 */
long
filecount
;
/* 0x014 */
long
unknown2
;
/* 0x018 */
char
directory
[
0x104
];
/* 0x01c */
...
...
dlls/cabinet/cabinet_main.c
View file @
3f5fada7
...
...
@@ -76,8 +76,10 @@ HRESULT WINAPI CABINET_DllGetVersion (DLLVERSIONINFO *pdvi)
* dest pointer to a buffer of 0x32c bytes containing
* [I] - number with value 1 at index 0x18
* - the dest path starting at index 0x1c
* [O] - the number of files inside the CAB file at index 0x14
* - the name of the last file with dest path at idx 0x12
* [O] - a linked list with the filename existing inside the
* CAB file at idx 0x10
* - the number of files inside the CAB file at index 0x14
* - the name of the last file with dest path at idx 0x120
* what [I] char* describing what to uncompress, I guess.
*
* RETURNS
...
...
@@ -114,6 +116,7 @@ HRESULT WINAPI Extract(EXTRACTdest *dest, LPCSTR what)
if
(
!
dir
)
return
E_OUTOFMEMORY
;
lstrcpyA
(
dir
,
dest
->
directory
);
dest
->
filecount
=
0
;
dest
->
filelist
=
NULL
;
TRACE
(
"extracting to dir: %s
\n
"
,
debugstr_a
(
dir
));
...
...
@@ -121,15 +124,6 @@ HRESULT WINAPI Extract(EXTRACTdest *dest, LPCSTR what)
if
(
!
process_cabinet
(
what
,
dir
,
FALSE
,
FALSE
,
dest
))
return
E_OUTOFMEMORY
;
/* the magic 13 is returned by all cab files tested so far:
* DXDDEX.CAB, DXMINI.CAB, SWFLASH.CAB on win2k
* but it crashes the ie5.5 installer :-( . The native dll does not return
* the four zeros. The value depends on the combination of the cab file and
* the destination path. It appears to be a pointer to an optional return struct.
* The IE6 installer derefs this value + 4. Contents currently unknown.
*/
dest
->
result2
=
0
;
LocalFree
(
dir
);
TRACE
(
"filecount %08lx,lastfile %s
\n
"
,
...
...
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