Removed incorrect string length calculation.
This commit is contained in:
parent
db4aae2222
commit
fee7fa62cc
|
@ -103,8 +103,8 @@ static BOOL FindCharMap(AFM *afm)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
afm->EncodingScheme = HeapAlloc(PSDRV_Heap, 0,
|
afm->EncodingScheme = HeapAlloc(PSDRV_Heap, 0, /* encoding_id */
|
||||||
sizeof("WindowsUnknown") + 1 + charmap->encoding_id / 10);
|
sizeof("WindowsUnknown65535")); /* is a UShort */
|
||||||
if (afm->EncodingScheme == NULL)
|
if (afm->EncodingScheme == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue