[PATCH 03/27] [Kernel32]: ActCtx: added basic structures for
storing assembly information
Alexandre Julliard
julliard at winehq.org
Wed May 9 05:27:02 CDT 2007
Eric Pouech <eric.pouech at wanadoo.fr> writes:
> +static struct assembly* add_assembly(struct actctx* actctx, enum assembly_type at)
> +{
> + struct assembly* assembly;
> +
> + if (!actctx->num_assemblies)
> + actctx->assemblies = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(struct assembly));
> + else
> + actctx->assemblies = HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
> + actctx->assemblies,
> + (actctx->num_assemblies + 1) * sizeof(struct assembly));
Growable arrays should be grown by a multiple of the current size.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list