itss: Fix potentially uninitialized variable compiler warnings.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
683583faf2
commit
b3af087041
|
@ -807,21 +807,16 @@ struct chmFile *chm_openW(const WCHAR *filename)
|
|||
{
|
||||
newHandle->compression_enabled = 0;
|
||||
}
|
||||
|
||||
newHandle->window_size = ctlData.windowSize;
|
||||
newHandle->reset_interval = ctlData.resetInterval;
|
||||
|
||||
else
|
||||
{
|
||||
newHandle->window_size = ctlData.windowSize;
|
||||
newHandle->reset_interval = ctlData.resetInterval;
|
||||
/* Jed, Mon Jun 28: Experimentally, it appears that the reset block count */
|
||||
/* must be multiplied by this formerly unknown ctrl data field in */
|
||||
/* order to decompress some files. */
|
||||
#if 0
|
||||
newHandle->reset_blkcount = newHandle->reset_interval /
|
||||
(newHandle->window_size / 2);
|
||||
#else
|
||||
newHandle->reset_blkcount = newHandle->reset_interval /
|
||||
(newHandle->window_size / 2) *
|
||||
ctlData.windowsPerReset;
|
||||
#endif
|
||||
newHandle->reset_blkcount = newHandle->reset_interval / (newHandle->window_size / 2) *
|
||||
ctlData.windowsPerReset;
|
||||
}
|
||||
}
|
||||
|
||||
return newHandle;
|
||||
|
|
Loading…
Reference in New Issue