Fixed a memory allocation/corruption bug when growing the font cache.

oldstable
Ove Kaaven 2003-07-08 21:04:53 +00:00 committed by Alexandre Julliard
parent baf2721bd8
commit ecc3f12af9
1 changed files with 1 additions and 1 deletions

View File

@ -2848,7 +2848,7 @@ static fontObject* XFONT_GetCacheEntry(void)
TRACE("\tgrowing font cache from %i to %i\n", fontCacheSize, prev_i );
if( (newCache = (fontObject*)HeapReAlloc(GetProcessHeap(), 0,
fontCache, prev_i)) )
fontCache, prev_i * sizeof(fontObject))) )
{
i = fontCacheSize;
fontCacheSize = prev_i;