Module: wine Branch: master Commit: 5de7b6a159f814e67ea2c181185f6080d0e07338 URL: https://source.winehq.org/git/wine.git/?a=commit;h=5de7b6a159f814e67ea2c1811...
Author: Alexandre Julliard julliard@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@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;