Alexandre Julliard : ntdll: Fix contents of the glyph table in generated codepage data.

Alexandre Julliard julliard at winehq.org
Fri Dec 6 16:06:38 CST 2019


Module: wine
Branch: master
Commit: 5de7b6a159f814e67ea2c181185f6080d0e07338
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5de7b6a159f814e67ea2c181185f6080d0e07338

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Dec  6 22:29:43 2019 +0100

ntdll: Fix contents of the glyph table in generated codepage data.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/locale.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ntdll/locale.c b/dlls/ntdll/locale.c
index d505a36ba8..4c95169366 100644
--- a/dlls/ntdll/locale.c
+++ b/dlls/ntdll/locale.c
@@ -350,7 +350,7 @@ static USHORT *build_cptable( const union cptable *src, SIZE_T *size )
         if (src->sbcs.cp2uni_glyphs != src->sbcs.cp2uni)
         {
             *ptr++ = 256;
-            memcpy( ptr + 1, src->sbcs.cp2uni_glyphs, 256 );
+            memcpy( ptr, src->sbcs.cp2uni_glyphs, 256 * sizeof(USHORT) );
             ptr += 256;
         }
         else *ptr++ = 0;




More information about the wine-cvs mailing list