Piotr Caban : msvcrt: Fix functions table reallocation in _onexit.
Module: wine Branch: master Commit: 70bff7377dbe9bdaaac5e86c49ee45130e65e5d9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=70bff7377dbe9bdaaac5e86c49... Author: Piotr Caban <piotr(a)codeweavers.com> Date: Fri May 15 20:44:19 2015 +0200 msvcrt: Fix functions table reallocation in _onexit. --- dlls/msvcrt/exit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msvcrt/exit.c b/dlls/msvcrt/exit.c index 0d2992d..3d79a4d 100644 --- a/dlls/msvcrt/exit.c +++ b/dlls/msvcrt/exit.c @@ -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;
participants (1)
-
Alexandre Julliard