msvcrt: Fix functions table reallocation in _onexit.

This commit is contained in:
Piotr Caban 2015-05-15 20:44:19 +02:00 committed by Alexandre Julliard
parent 5120fa9090
commit 70bff7377d
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ MSVCRT__onexit_t CDECL MSVCRT__onexit(MSVCRT__onexit_t func)
UNLOCK_EXIT;
return NULL;
}
memcpy (newtable, MSVCRT_atexit_table, MSVCRT_atexit_table_size);
memcpy (newtable, MSVCRT_atexit_table, MSVCRT_atexit_table_size*sizeof(void *));
MSVCRT_atexit_table_size += 32;
MSVCRT_free (MSVCRT_atexit_table);
MSVCRT_atexit_table = newtable;