Commit b3af0870 authored by Alexandre Julliard's avatar Alexandre Julliard

itss: Fix potentially uninitialized variable compiler warnings.

parent 683583fa
......@@ -807,21 +807,16 @@ struct chmFile *chm_openW(const WCHAR *filename)
{
newHandle->compression_enabled = 0;
}
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) *
newHandle->reset_blkcount = newHandle->reset_interval / (newHandle->window_size / 2) *
ctlData.windowsPerReset;
#endif
}
}
return newHandle;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment