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
6d27685b
Commit
6d27685b
authored
Dec 01, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
itss: Remove unneeded casts of zero.
parent
d5b1874b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
chm_lib.c
dlls/itss/chm_lib.c
+6
-6
No files found.
dlls/itss/chm_lib.c
View file @
6d27685b
...
...
@@ -723,7 +723,7 @@ struct chmFile *chm_openW(const WCHAR *filename)
/* read and verify header */
sremain
=
_CHM_ITSF_V3_LEN
;
sbufpos
=
sbuffer
;
if
(
_chm_fetch_bytes
(
newHandle
,
sbuffer
,
(
UInt64
)
0
,
sremain
)
!=
sremain
||
if
(
_chm_fetch_bytes
(
newHandle
,
sbuffer
,
0
,
sremain
)
!=
sremain
||
!
_unmarshal_itsf_header
(
&
sbufpos
,
&
sremain
,
&
itsfHeader
))
{
chm_close
(
newHandle
);
...
...
@@ -1210,7 +1210,7 @@ static Int64 _chm_decompress_block(struct chmFile *h,
fprintf
(
stderr
,
" (DECOMPRESS FAILED!)
\n
"
);
#endif
HeapFree
(
GetProcessHeap
(),
0
,
cbuffer
);
return
(
Int64
)
0
;
return
0
;
}
h
->
lzx_last_block
=
(
int
)
curBlockIdx
;
...
...
@@ -1250,7 +1250,7 @@ static Int64 _chm_decompress_block(struct chmFile *h,
fprintf
(
stderr
,
" (DECOMPRESS FAILED!)
\n
"
);
#endif
HeapFree
(
GetProcessHeap
(),
0
,
cbuffer
);
return
(
Int64
)
0
;
return
0
;
}
h
->
lzx_last_block
=
(
int
)
block
;
...
...
@@ -1273,7 +1273,7 @@ static Int64 _chm_decompress_region(struct chmFile *h,
UChar
*
ubuffer
=
NULL
;
if
(
len
<=
0
)
return
(
Int64
)
0
;
return
0
;
/* figure out what we need to read */
nBlock
=
start
/
h
->
reset_table
.
block_len
;
...
...
@@ -1323,11 +1323,11 @@ LONGINT64 chm_retrieve_object(struct chmFile *h,
{
/* must be valid file handle */
if
(
h
==
NULL
)
return
(
Int64
)
0
;
return
0
;
/* starting address must be in correct range */
if
(
addr
>=
ui
->
length
)
return
(
Int64
)
0
;
return
0
;
/* clip length */
if
(
addr
+
len
>
ui
->
length
)
...
...
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