[WINESYNC] msvcrt: Use memmove to copy memory in wmemcpy_s.

Fixes memory corruption in Outlook 2016.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>

wine commit id be56a83fd00cdaf9583a973b1e041f47c5277768 by Jacek Caban <jacek@codeweavers.com>
This commit is contained in:
Timo Kreuzer 2018-10-05 17:38:48 +03:00
parent c50fb470b4
commit 6b8a981010

View file

@ -849,7 +849,7 @@ int CDECL wmemcpy_s(MSVCRT_wchar_t *dest, MSVCRT_size_t numberOfElements,
return MSVCRT_ERANGE;
}
memcpy(dest, src, sizeof(MSVCRT_wchar_t)*count);
memmove(dest, src, sizeof(MSVCRT_wchar_t)*count);
return 0;
}
#endif