d3dcompiler: Fix initial allocation (Valgrind).

This commit is contained in:
Matteo Bruni 2011-02-07 14:35:37 +01:00 committed by Alexandre Julliard
parent 03c29bf7f5
commit 005910957b
1 changed files with 2 additions and 2 deletions

View File

@ -206,13 +206,13 @@ static void *wpp_open_mem(const char *filename, int type)
{
if(includes_capacity == 0)
{
includes = HeapAlloc(GetProcessHeap(), 0, INCLUDES_INITIAL_CAPACITY);
includes = HeapAlloc(GetProcessHeap(), 0, INCLUDES_INITIAL_CAPACITY * sizeof(*includes));
if(includes == NULL)
{
ERR("Error allocating memory for the loaded includes structure\n");
goto error;
}
includes_capacity = INCLUDES_INITIAL_CAPACITY;
includes_capacity = INCLUDES_INITIAL_CAPACITY * sizeof(*includes);
}
else
{