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

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2019-12-06 22:29:43 +01:00
parent 117dbfa2cf
commit 5de7b6a159
1 changed files with 1 additions and 1 deletions

View File

@ -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;