b=513192; Crash [@nsAString_internal::BeginReading(nsReadingIterator<unsigned short>&)]; r=jfkthame

This commit is contained in:
Takuro Ashie 2009-09-10 13:57:27 -07:00
Родитель 718840c3e2
Коммит 682b8978d2
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -620,7 +620,11 @@ gfxWindowsPlatform::FindFontForCharProc(nsStringHashKey::KeyType aKey,
if (!fe)
return PL_DHASH_NEXT;
PRInt32 rank = 0;
// initialize rank to 1 so that any match is better than the initial
// value of data->mMatchRank (zero); therefore the first font that
// passes the mCharacterMap.test() will become the mBestMatch until
// a better entry is found
PRInt32 rank = 1;
// skip over non-unicode and bitmap fonts and fonts that don't have
// the code point we're looking for