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
f9859a88
Commit
f9859a88
authored
Jan 09, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Jan 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cabinet: Fix the second parameter name of Extract.
parent
d57c20ac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
cabinet_main.c
dlls/cabinet/cabinet_main.c
+4
-4
No files found.
dlls/cabinet/cabinet_main.c
View file @
f9859a88
...
...
@@ -80,13 +80,13 @@ HRESULT WINAPI DllGetVersion (DLLVERSIONINFO *pdvi)
* 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
.
*
szCabName [I] Filename of the cabinet to extract
.
*
* RETURNS
* Success: S_OK
* Failure: E_OUTOFMEMORY (?)
*/
HRESULT
WINAPI
Extract
(
EXTRACTdest
*
dest
,
LPCSTR
what
)
HRESULT
WINAPI
Extract
(
EXTRACTdest
*
dest
,
LPCSTR
szCabName
)
{
#define DUMPC(idx) idx >= sizeof(EXTRACTdest) ? ' ' : \
((unsigned char*) dest)[idx] >= 0x20 ? \
...
...
@@ -97,7 +97,7 @@ HRESULT WINAPI Extract(EXTRACTdest *dest, LPCSTR what)
LPSTR
dir
;
unsigned
int
i
;
TRACE
(
"(dest == %0lx,
what == %s)
\n
"
,
(
long
)
dest
,
debugstr_a
(
what
));
TRACE
(
"(dest == %0lx,
szCabName == %s)
\n
"
,
(
long
)
dest
,
debugstr_a
(
szCabName
));
if
(
!
dest
)
{
/* win2k will crash here */
...
...
@@ -121,7 +121,7 @@ HRESULT WINAPI Extract(EXTRACTdest *dest, LPCSTR what)
TRACE
(
"extracting to dir: %s
\n
"
,
debugstr_a
(
dir
));
/* FIXME: what to do on failure? */
if
(
!
process_cabinet
(
what
,
dir
,
FALSE
,
FALSE
,
dest
))
{
if
(
!
process_cabinet
(
szCabName
,
dir
,
FALSE
,
FALSE
,
dest
))
{
LocalFree
(
dir
);
return
E_OUTOFMEMORY
;
}
...
...
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