Commit fee7fa62 authored by Ian Pilcher's avatar Ian Pilcher Committed by Alexandre Julliard

Removed incorrect string length calculation.

parent db4aae22
...@@ -103,8 +103,8 @@ static BOOL FindCharMap(AFM *afm) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment