mlang: Avoid unneeded HeapReAlloc.

Our current code enumerates 145 Rfc1766 entries, so use a more
resonable start value.
This commit is contained in:
Detlef Riekenberg 2009-05-30 00:29:53 +02:00 committed by Alexandre Julliard
parent 6eec511798
commit 722bc5a864
1 changed files with 1 additions and 1 deletions

View File

@ -2490,7 +2490,7 @@ static HRESULT EnumRfc1766_create(LANGID LangId, IEnumRfc1766 **ppEnum)
rfc->total = 0; rfc->total = 0;
data.total = 0; data.total = 0;
data.allocated = 32; data.allocated = 160;
data.info = HeapAlloc(GetProcessHeap(), 0, data.allocated * sizeof(RFC1766INFO)); data.info = HeapAlloc(GetProcessHeap(), 0, data.allocated * sizeof(RFC1766INFO));
if (!data.info) if (!data.info)
{ {