Michael Stefaniuc : itss: Remove unneeded casts of zero.
Alexandre Julliard
julliard at winehq.org
Tue Dec 2 11:01:57 CST 2008
Module: wine
Branch: master
Commit: 6d27685be2786bb644c79ba0a0bcc63b5b51ee56
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6d27685be2786bb644c79ba0a0bcc63b5b51ee56
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Mon Dec 1 17:24:59 2008 +0100
itss: Remove unneeded casts of zero.
---
dlls/itss/chm_lib.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/itss/chm_lib.c b/dlls/itss/chm_lib.c
index 3b98d5e..6b80ef2 100644
--- a/dlls/itss/chm_lib.c
+++ b/dlls/itss/chm_lib.c
@@ -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)
More information about the wine-cvs
mailing list