msvcp140: Fix _Winerror_message test failures.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51307 Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ba5f90b29a
commit
afc0d31d3e
|
@ -1254,8 +1254,10 @@ static void test__Winerror_message(void)
|
|||
|
||||
memset(buf, 'a', sizeof(buf));
|
||||
ret = p__Winerror_message(0, buf, sizeof(buf));
|
||||
ok(ret == ret_fm, "ret = %u, expected %u\n", ret, ret_fm);
|
||||
ok(!strcmp(buf, buf_fm), "buf = %s, expected %s\n", buf, buf_fm);
|
||||
ok(ret == ret_fm || (ret_fm > 2 && buf_fm[ret_fm - 1] == '\n' &&
|
||||
buf_fm[ret_fm - 2] == '\r' && ret + 2 == ret_fm),
|
||||
"ret = %u, expected %u\n", ret, ret_fm);
|
||||
ok(!strncmp(buf, buf_fm, ret), "buf = %s, expected %s\n", buf, buf_fm);
|
||||
|
||||
memset(buf, 'a', sizeof(buf));
|
||||
ret = p__Winerror_message(0, buf, 2);
|
||||
|
|
Loading…
Reference in New Issue