Alexandre Julliard : kernelbase: Initialize all the compression tables the first time.
Alexandre Julliard
julliard at winehq.org
Fri Jun 3 15:53:08 CDT 2022
Module: wine
Branch: master
Commit: d1580fd209e1de120e673c5b838f4f2d1f68d6d7
URL: https://source.winehq.org/git/wine.git/?a=commit;h=d1580fd209e1de120e673c5b838f4f2d1f68d6d7
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Jun 3 12:50:41 2022 +0200
kernelbase: Initialize all the compression tables the first time.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53094
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/kernelbase/locale.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/kernelbase/locale.c b/dlls/kernelbase/locale.c
index 33f24863740..ac4dc188345 100644
--- a/dlls/kernelbase/locale.c
+++ b/dlls/kernelbase/locale.c
@@ -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--)
More information about the wine-cvs
mailing list