itss: Fix potentially uninitialized variable compiler warnings.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-06-08 14:16:58 +02:00
parent 683583faf2
commit b3af087041
1 changed files with 7 additions and 12 deletions

View File

@ -807,21 +807,16 @@ struct chmFile *chm_openW(const WCHAR *filename)
{ {
newHandle->compression_enabled = 0; newHandle->compression_enabled = 0;
} }
else
newHandle->window_size = ctlData.windowSize; {
newHandle->reset_interval = ctlData.resetInterval; newHandle->window_size = ctlData.windowSize;
newHandle->reset_interval = ctlData.resetInterval;
/* Jed, Mon Jun 28: Experimentally, it appears that the reset block count */ /* Jed, Mon Jun 28: Experimentally, it appears that the reset block count */
/* must be multiplied by this formerly unknown ctrl data field in */ /* must be multiplied by this formerly unknown ctrl data field in */
/* order to decompress some files. */ /* order to decompress some files. */
#if 0 newHandle->reset_blkcount = newHandle->reset_interval / (newHandle->window_size / 2) *
newHandle->reset_blkcount = newHandle->reset_interval / ctlData.windowsPerReset;
(newHandle->window_size / 2); }
#else
newHandle->reset_blkcount = newHandle->reset_interval /
(newHandle->window_size / 2) *
ctlData.windowsPerReset;
#endif
} }
return newHandle; return newHandle;