Piotr Caban : msvcrt/tests: Add overlapped memory move sprintf test.
Module: wine Branch: master Commit: 70b3e2b0e8af02232b003e8e57edde1c0a1bf89a URL: https://source.winehq.org/git/wine.git/?a=commit;h=70b3e2b0e8af02232b003e8e5... Author: Piotr Caban <piotr(a)codeweavers.com> Date: Wed Oct 16 11:37:30 2019 +0200 msvcrt/tests: Add overlapped memory move sprintf test. Signed-off-by: Piotr Caban <piotr(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/msvcrt/tests/printf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/msvcrt/tests/printf.c b/dlls/msvcrt/tests/printf.c index 5e15989d1c..6f7ebde512 100644 --- a/dlls/msvcrt/tests/printf.c +++ b/dlls/msvcrt/tests/printf.c @@ -802,6 +802,11 @@ static void test_sprintf( void ) ok(r==2, "r = %d\n", r); ok(!strcmp(buffer, "\x82\xa0"), "failed: \"%s\"\n", buffer); + strcpy(buffer, " string to copy"); + r = p_sprintf(buffer, buffer+1); + ok(r==14, "r = %d\n", r); + ok(!strcmp(buffer, "string to copy"), "failed: \"%s\"\n", buffer); + setlocale(LC_ALL, "C"); }
participants (1)
-
Alexandre Julliard