msvcrt/tests: Add overlapped memory move sprintf test.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2019-10-16 11:37:30 +02:00 committed by Alexandre Julliard
parent 46dcaa5b93
commit 70b3e2b0e8
1 changed files with 5 additions and 0 deletions

View File

@ -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");
}