From 5de7b6a159f814e67ea2c181185f6080d0e07338 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 6 Dec 2019 22:29:43 +0100 Subject: [PATCH] ntdll: Fix contents of the glyph table in generated codepage data. Signed-off-by: Alexandre Julliard --- 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 d505a36ba88..4c951693662 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;