mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 09:33:40 +00:00
[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:
parent
c50fb470b4
commit
6b8a981010
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue