Removed incorrect string length calculation.

This commit is contained in:
Ian Pilcher 2001-06-06 20:20:37 +00:00 committed by Alexandre Julliard
parent db4aae2222
commit fee7fa62cc

View File

@ -103,8 +103,8 @@ static BOOL FindCharMap(AFM *afm)
}
else
{
afm->EncodingScheme = HeapAlloc(PSDRV_Heap, 0,
sizeof("WindowsUnknown") + 1 + charmap->encoding_id / 10);
afm->EncodingScheme = HeapAlloc(PSDRV_Heap, 0, /* encoding_id */
sizeof("WindowsUnknown65535")); /* is a UShort */
if (afm->EncodingScheme == NULL)
return FALSE;