Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
0aecedf2
Commit
0aecedf2
authored
Mar 24, 2008
by
Marcus Meissner
Committed by
Alexandre Julliard
Mar 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version: LZCopy return value is LONG.
parent
fbdf05aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
install.c
dlls/version/install.c
+10
-8
No files found.
dlls/version/install.c
View file @
0aecedf2
...
...
@@ -367,7 +367,8 @@ DWORD WINAPI VerInstallFileA(
LPCSTR
pdest
;
char
destfn
[
260
],
tmpfn
[
260
],
srcfn
[
260
];
HFILE
hfsrc
,
hfdst
;
DWORD
attr
,
ret
,
xret
,
tmplast
;
DWORD
attr
,
xret
,
tmplast
;
LONG
ret
;
LPBYTE
buf1
,
buf2
;
OFSTRUCT
ofs
;
...
...
@@ -419,30 +420,31 @@ DWORD WINAPI VerInstallFileA(
}
ret
=
LZCopy
(
hfsrc
,
hfdst
);
_lclose
(
hfdst
);
if
(
((
LONG
)
ret
)
<
0
)
{
if
(
ret
<
0
)
{
/* translate LZ errors into VIF_xxx */
switch
(
ret
)
{
case
LZERROR_BADINHANDLE
:
case
LZERROR_READ
:
case
LZERROR_BADVALUE
:
case
LZERROR_UNKNOWNALG
:
ret
=
VIF_CANNOTREADSRC
;
x
ret
=
VIF_CANNOTREADSRC
;
break
;
case
LZERROR_BADOUTHANDLE
:
case
LZERROR_WRITE
:
ret
=
VIF_OUTOFSPACE
;
x
ret
=
VIF_OUTOFSPACE
;
break
;
case
LZERROR_GLOBALLOC
:
case
LZERROR_GLOBLOCK
:
ret
=
VIF_OUTOFMEMORY
;
x
ret
=
VIF_OUTOFMEMORY
;
break
;
default:
/* unknown error, should not happen */
ret
=
0
;
FIXME
(
"Unknown LZCopy error %d, ignoring.
\n
"
,
ret
);
xret
=
0
;
break
;
}
if
(
ret
)
{
if
(
x
ret
)
{
LZClose
(
hfsrc
);
return
ret
;
return
x
ret
;
}
}
}
...
...
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