Commit d1580fd2 authored by Alexandre Julliard's avatar Alexandre Julliard

kernelbase: Initialize all the compression tables the first time.

parent c4dd394a
......@@ -3328,7 +3328,7 @@ static int get_compression_weights( UINT compression, const WCHAR *compr_tables[
if (!compr_tables[0])
{
compr_tables[0] = sort.compr_data + compr->offset;
for (i = 1; i <= maxlen - 2; i++)
for (i = 1; i < 8; i++)
compr_tables[i] = compr_tables[i - 1] + compr->len[i - 1] * compression_size( i + 1 );
}
for (i = maxlen - 2; i >= 0; i--)
......
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