Commit ecc3f12a authored by Ove Kaaven's avatar Ove Kaaven Committed by Alexandre Julliard

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

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