bug 558027 - gfxFontUtils::MakeEOTHeader is too fussy, an empty version string is acceptable. r=jdaggett

This commit is contained in:
Jonathan Kew 2010-04-16 09:08:36 +01:00
parent cae7487da9
commit 733d1e3812

View File

@ -1802,8 +1802,8 @@ gfxFontUtils::MakeEOTHeader(const PRUint8 *aFontData, PRUint32 aFontDataLength,
break;
}
if (needNames != 0)
{
// the Version name is allowed to be null
if ((needNames & ~(1 << EOTFixedHeader::EOT_VERSION_NAME_INDEX)) != 0) {
return NS_ERROR_FAILURE;
}