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:
parent
46dcaa5b93
commit
70b3e2b0e8
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue