[PATCH] kernelbase: Fix a typo in weights comparison helper (Coverity).

Nikolay Sivov nsivov at codeweavers.com
Fri Jan 3 07:03:33 CST 2020


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---

This changes matches winelib copy.

 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 c250c97968..da69e5a1f3 100644
--- a/dlls/kernelbase/locale.c
+++ b/dlls/kernelbase/locale.c
@@ -2191,7 +2191,7 @@ static int compare_weights(int flags, const WCHAR *str1, int len1,
                 inc_str_pos( &str1, &len1, &dpos1, &dlen1 );
                 skip = 1;
             }
-            if (get_table_entry( wctype_table, dstr2[dpos1] ) & (C1_PUNCT | C1_SPACE))
+            if (get_table_entry( wctype_table, dstr2[dpos2] ) & (C1_PUNCT | C1_SPACE))
             {
                 inc_str_pos( &str2, &len2, &dpos2, &dlen2 );
                 skip = 1;
-- 
2.24.1




More information about the wine-devel mailing list